Simone Chemelli
8bedf97382
Remove helpers and align coding style in Shelly tests ( #140080 )
...
* Cleanup hass.states method in Shelly tests (part 1)
* remove helper functions and align coding style
* missed
* revert unwanted changes
* apply review comment
* apply review comment
* apply review comment
* apply ATTR where missing
* apply walrus
* add missed walrus
* add walrus to entity_registry.async_get
* minor tweak
* align after merge
2025-03-26 10:05:42 +01:00
Maciej Bieniek
1290f18ed4
Add support for Shelly CCT light ( #126989 )
...
* Initial support for cct lights
* Move properties to the RpcShellyCctLight class
* Fix entity names
* Add async_remove_orphaned_entities() function
* Do not return
* Fix tests
* Combine async_remove_orphaned_virtual_entities and async_remove_orphaned_entities
* Remove SHELLY_PLUS_RGBW_CHANNELS from const
* Add tests
* Use _attr*
* Check ColorMode.COLOR_TEMP
* Add sensors for CCT light
* Remove removal condition
* Remove orphaned sensors
* Cleaning
* Add device temperature sensor for CCT light
* Simplify async_remove_orphaned_entities()
* Comment
* Add COMPONENT_ID_PATTERN const
* Call async_add_entities once
* Suggested change
* Better type for keys
* Do not call keys()
2024-10-04 08:49:35 +02:00
Shay Levy
3e99afdd54
Cleanup Shelly RGBW light entities ( #114410 )
2024-03-30 18:48:57 +03:00
Shay Levy
63275d61a5
Add Shelly RGB/RGBW profiles support ( #113808 )
...
* Add Shelly RGB/RGBW profiles support
* Update homeassistant/components/shelly/light.py
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
* Use walrus in rgbw_key_ids
* Use walrus in light_key_ids
---------
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2024-03-21 21:04:50 +02:00
Marc Mueller
7d6251ca08
Add empty line after module docstring [tests q-s] ( #112711 )
2024-03-08 14:47:22 +01:00
Maciej Bieniek
8de038527f
Improve type annotation in Shelly tests ( #110361 )
...
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-12 10:23:55 -06:00
Maciej Bieniek
d0384480f5
Test unique IDs for Shelly entities ( #109879 )
...
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-07 10:18:00 -06:00
Erik Montnemery
aea81a180c
Fix Shelly white light test ( #109855 )
2024-02-07 15:39:49 +01:00
Maciej Bieniek
35b733fa2c
Bump aioshelly
to version 7.0.0 ( #105384 )
...
* Remove get_rpc_device_sleep_period() function
* Bump aioshelly version to 7.0.0
* Remove firmware compatibility check from BLE scanner
* Remove firmware compatibility check from light transition
* Update default fw ver
* Use LightEntityFeature in tests
2023-12-09 17:12:05 +02:00
Maciej Bieniek
2515dbeee1
Bump aioshelly to version 6.1.0 ( #104456 )
...
* Bump aioshelly
* Use MODEL_* consts from aioshelly
* Add missing models to BATTERY_DEVICES_WITH_PERMANENT_CONNECTION
2023-11-24 20:55:00 +02:00
Shay Levy
b0f3b7bb76
Revert "Change naming of Shelly entities to correspond with HA guidelines" ( #99059 )
2023-08-28 10:42:24 +02:00
Maciej Bieniek
c526d23686
Change naming of Shelly entities to correspond with HA guidelines ( #97533 )
...
* 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
epenet
80ee196fd8
Add type hints to integration tests (part 19) ( #88178 )
2023-02-15 18:07:40 +01:00
Shay Levy
e1923bc13b
Add Shelly support for Plus WallDimmer US ( #83385 )
2022-12-06 19:44:17 +02:00
J. Nick Koston
956120662e
Add the ability to register for shelly event callbacks ( #82052 )
2022-11-14 19:58:10 +01:00
Shay Levy
9019fcb5c5
Migrate Shelly to use kelvin for color temperature ( #79880 )
2022-10-08 22:24:19 +03:00