Commit graph

28 commits

Author SHA1 Message Date
epenet
08eb8232e5
Fix namespace-import pylint warning in shelly tests () 2024-06-11 08:08:47 +02:00
epenet
20b5aa3e0e
Move entity_registry_enabled_by_default to decorator [q-z] () 2024-06-04 13:38:32 +02:00
Shay Levy
ecd48cc447
Clean up Shelly unneccesary async_block_till_done calls () 2024-05-26 00:28:48 +03:00
J. Nick Koston
9ca1d204b6
Fix shelly delaying shutdown () 2024-04-28 11:19:38 -05:00
Shay Levy
291df6dafe
Bump aioshelly to 9.0.0 ()
* Update Shelly to use initialize from aioshelly

* Save indentation in _async_device_connect

* Use firmware_supported property from aioshelly

* Review comments

* Bump aioshelly

* Fix lint errors

* Test RPC initialized update
2024-04-14 18:07:26 +03:00
Marc Mueller
7d6251ca08
Add empty line after module docstring [tests q-s] () 2024-03-08 14:47:22 +01:00
Shay Levy
c690a9df83
Fix Shelly RPC RSSI sensor removal () 2024-02-20 21:05:59 -06:00
Maciej Bieniek
2bd64dba6b
Add removal_condition for Shelly analog input sensors ()
* Add remove condition for analog input sensors

* xpercent key is not present in the payload if it has not been configured

---------

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-12 20:13:11 +01:00
Maciej Bieniek
8de038527f
Improve type annotation in Shelly tests ()
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-12 10:23:55 -06:00
Maciej Bieniek
4f277b9509
Add pulse counter sensors for Shelly ()
* Add pulse counter sensors to Shelly

* Add a unit for the pulse counter

* Fix removal condition

* xtotal key is not present in the payload if it has not been configured

* Update test

---------

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-12 09:42:38 +01:00
Maciej Bieniek
b276a7863b
Add missing unique_id check for Shelly Analog Input sensor ()
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-07 11:20:53 -06:00
Maciej Bieniek
b5b09446a1
Add analog input value sensor for Shelly ()
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-02-07 10:22:00 -06:00
Maciej Bieniek
d0384480f5
Test unique IDs for Shelly entities ()
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-02-07 10:18:00 -06:00
Shay Levy
28e18ce7bf
Fix Shelly Gen1 entity description restore ()
* Fix Shelly Gen1 entity description restore

* Update tests/components/shelly/test_sensor.py

Co-authored-by: J. Nick Koston <nick@koston.org>

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2024-01-15 20:53:56 +02:00
Maciej Bieniek
47c9d58b5e
Override the async_update() method for Shelly sleeping devices () 2023-10-25 13:48:00 +02:00
Maciej Bieniek
e1f4a3fa9f
Add energy meter sensors for Shelly Pro EM ()
* Add support for Pro EM

* Improve get_rpc_channel_name()

* Revert an unintended change

* Add tests
2023-09-07 06:59:04 +02:00
Shay Levy
b0f3b7bb76
Revert "Change naming of Shelly entities to correspond with HA guidelines" () 2023-08-28 10:42:24 +02:00
Erik Montnemery
b0952bc54a
Use freezegun in shelly tests () 2023-08-25 09:06:43 -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
fe61672792
Don't inherit SensorEntity/NumberEntity and RestoreEntity in Shelly integration ()
* Use RestoreNumber and Restore Sensor for block entities

* Update tests

* Use RestoreSensor for RPC entities

* Fix test for number platform
2023-06-04 19:14:08 -05:00
Maciej Bieniek
eb058a3d41
Add illuminance sensor for Shelly gen2 devices () 2023-05-25 23:10:44 +02:00
Maciej Bieniek
7119a0f811
Use suggested_display_precision instead of rounding in Shelly sensor platform () 2023-02-20 10:20:52 -06:00
epenet
80ee196fd8
Add type hints to integration tests (part 19) () 2023-02-15 18:07:40 +01:00
Shay Levy
803cd8d9a3
Handle state unknown if last state is missing in Shelly ()
Shelly - handle state unknown if last state is missing
2023-01-27 23:34:56 +01:00
Shay Levy
9e4be56939
Shelly - handle None in RPC power sensors ()
Handle None in RPC power sensors
2023-01-22 22:18:47 +02:00
Shay Levy
91a44b697b
Add tests coverage for Shelly number platform () 2022-11-21 10:55:06 -06:00
Shay Levy
32f3eb722e
Add tests coverage for Shelly entity ()
* Add tests coverage for Shelly entity

* Make it generator expression
2022-11-20 23:59:25 +02:00
Shay Levy
8bd7f59b93
Add tests for Shelly sensor platform () 2022-11-19 22:01:30 +02:00