Commit graph

14 commits

Author SHA1 Message Date
Shay Levy
b0f3b7bb76
Revert "Change naming of Shelly entities to correspond with HA guidelines" () 2023-08-28 10:42:24 +02:00
Shay Levy
406f06f0fc
Abort Shelly setup if MAC address mismatch () 2023-08-22 07:41:50 -05:00
Maciej Bieniek
c526d23686
Change naming of Shelly entities to correspond with HA guidelines ()
* Do not use the device name to create the entity name

* Remove unnecessary return

* Fix mypy complains

* Gen1

* Uncapitalize description.name if channel name is used

* Fix for climate and button

* switch_3 -> switch 3

* Add _attr_has_entity_name to ShellyRestAttributeEntity

* Capitalize channel name
2023-08-19 11:13:22 +02:00
Maciej Bieniek
05039036f1
Add compatibility with sleeping Shelly gen2 devices with firmware 1.0.0 () 2023-06-21 12:01:17 +02:00
epenet
80ee196fd8
Add type hints to integration tests (part 19) () 2023-02-15 18:07:40 +01:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ()
* Enable Ruff PT006

* Adjust existing cases

* Fix tests

* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
ba85fdcd61
Add type hints to integration tests (q-s) () 2023-02-08 08:12:54 -08:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 () 2023-02-02 18:35:24 +01:00
Shay Levy
d5797d9f7d
Cleanup Shelly imports ()
* Cleanup Shelly imports

* Cleanup tests
2023-01-22 01:26:54 +02:00
J. Nick Koston
2c95c0b3a1
Do not check ble scanner state for sleepy shelly devices ()
fixes 
2023-01-10 00:16:14 +02:00
J. Nick Koston
e900918e51
Fix reload race in shelly when device is recently offline () 2022-12-21 09:29:48 +01:00
J. Nick Koston
b665a060f7
Do not try to stop the shelly ble scanner if not connected ()
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-12-06 22:57:54 -05:00
J. Nick Koston
435fc23737
Add shelly ble scanner support () 2022-11-15 12:34:45 -06:00
Shay Levy
228d491216
Fix Shelly entry unload and add tests for init () 2022-10-22 09:00:35 +02:00