Commit 590b58a
Add Class to discover all switchbots, all curtain bots or all bot (woHand) (#23)
* New class to fetch all switchbot device data for all devices in range.
* Method to return all switchbot info
* Update __init__.py
* Update __init__.py
* Refactor code into methods
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Add invert for switch, cleanup variable names
* Add method for spesific mac to Switchbots class, inverse isOn check, add get is calibrated to main switchbot class.
* Add temperature sensor to discovery. (I have no way to test this)
* Update __init__.py
* Update setup.py
* Remove waiting time. This can be handled by hassio
* Restructured switchbot base class for device discovery and single poll for all device updates.
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Prevent additional runs if update fails.
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Update setup.py
Co-authored-by: Daniel Hjelseth Høyer <[email protected]>
* Update switchbot/__init__.py
Co-authored-by: Daniel Hjelseth Høyer <[email protected]>
* New class for device scanning.
* Changed scan timeout and retry count to use same variable format as rest of class.
* Handle _connect, _writekey and _disconnect via CONNECT_LOCK.
* SwitchbotDevice only returns data if update is called, btle interface can be specified on scanning methods.
-Add basic error handling to prevent key errors on discovery exceptions.
* Small key reference fix in GetSwitchbotDevices class.
* Cleanup pointless error handling code.
Co-authored-by: Daniel Hjelseth Høyer <[email protected]>1 parent 2fca8be commit 590b58a
2 files changed
+305
-123
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments