* Move register method to GroupManager
* Remove GroupManager mapping when entity removed
* Add test for when unloaded
* Error when group member not found
* Use entity registery to remove entity
* Update tests per feedback
* Support relay switch
* 更新下版本
* add test case
* change to async_abort
* Upgrade PySwitchbot to 0.53.2
* change unit to volt
* upgrade pySwitchbot dependency
* bump lib, will be split into a seperate PR after testing is finished
* dry
* dry
* dry
* dry
* dry
* dry
* dry
* update tests
* fixes
* fixes
* cleanups
* fixes
* fixes
* fixes
* bump again
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Reword invoke_pin action to avoid misunderstanding with "PIN"
The previous mismatch between "PIN" and "pin" in the invoke_pin caused wrong translations as "PIN" was interpreted as the abbreviation for "Personal Identification Number".
This commit fixes this by explaining "pin" as related to "pinning" content on the device.
In addition the very "invoke" is replaced by "play" which every user and translator will understand immediately.
Along with those changes this commit reverts my previous change to "PIN" in all strings that made things worse.
* Use "Pin ID" for the field variable
* upgrade iottycloud lib to 0.3.0
* Add outlet
* test outlet turn on and turn off
* test add outlet
* Refactor code to use only one SwitchEntity with an EntityDescription to distinguish Outlet and Lightswitch
* Refactor switch entities to reduce duplicated code
* Refactor tests to reduce duplicated code
* Refactor code to improve abstraction layer using specific types instead of generics
* Remove print and redundant field
* Fix inconsistent spelling of "PIN" and "ID"
Several actions contain an inconsistent spelling of "PIN" and "ID" with lowercase characters.
Especially to avoid (automated) mistranslations as (connection) pin etc. this needs to be corrected.
* Fix lowercase "blink" as well
Additional commit to fix the wrong spelling of "blink" along the way.
Part of the strings in the strings.json use an inconsistent spelling of "PIN" as "pin"
This commit fixes this to ensure correct and consistent translations, too.