Commit Graph

578 Commits (f0eb0849088aa843d3ab8b479f2a734eeb3d6414)

Author SHA1 Message Date
Maciej Bieniek 79a122e1e5
Fix Shelly button `unique_id` migration (#95707)
Fix button unique_id migration
2023-07-02 16:28:41 +03:00
Paulus Schoutsen 149ac4f99e
Capitalize a bunch of translations (#95421) 2023-06-28 11:08:53 +02:00
Maciej Bieniek 8d6a711cac
Make `unique_id` of the Shelly button entity immutable (#95160) 2023-06-27 19:10:12 +02:00
Franck Nijhof 3e85a29b86
Move overlapping pylint rules to ruff, disable mypy overlap (#94359) 2023-06-27 17:42:46 +02:00
Maciej Bieniek 05039036f1
Add compatibility with sleeping Shelly gen2 devices with firmware 1.0.0 (#94864) 2023-06-21 12:01:17 +02:00
Maciej Bieniek 15ddf69c6a
Bump Shelly backend library to version 5.4.0 (#94829)
Bump aioshelly to version 5.4.0
2023-06-19 00:10:29 +02:00
J. Nick Koston 2a5ffa9a5b
Fix timestamps for bluetooth scanners that bundle advertisements (#94511)
#94138 added support for raw/bundled advertisements. We should use the
same monotonic time for all advertisements in the bundle if not time
is passed, or calculate the timestamp and pass it if its known
2023-06-14 21:47:00 -04:00
Maciej Bieniek 7b3f100efb
Catch InvalidAuthError in `shutdown()` method for Shelly gen2 devices (#94563)
* Catch InvalidAuthError in shutdown() method

* Add test

* Revert unwanted change in tests
2023-06-15 00:00:21 +03:00
Erik Montnemery 2406b235b4
Name unnamed binary sensors by their device class (#92940)
* Name unnamed binary sensors by their device class

* Update type annotations

* Fix loading of entity component translations

* Add test

* Update integrations

* Set abode and rfxtrx binary_sensor name to None

* Revert changes in homekit_controller
2023-06-13 19:48:54 +02:00
Maciej Bieniek fe61672792
Don't inherit SensorEntity/NumberEntity and RestoreEntity in Shelly integration (#93531)
* 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 e6a214595b
Avoid KeyError when specifying the consumption type in Shelly integration (#93561)
Avoid KeyError when specifying the consumption type
2023-05-25 23:12:25 +02:00
Maciej Bieniek eb058a3d41
Add illuminance sensor for Shelly gen2 devices (#93559) 2023-05-25 23:10:44 +02:00
Erik Montnemery a71c097aeb
Revert "Allow setting an entity's name by its device class" (#93539) 2023-05-25 17:20:54 +02:00
epenet 6057aeee2f
Prevent NumberEntity and RestoreEntity inheritance (#93467) 2023-05-24 20:59:14 +02:00
epenet c475273145
Prevent SensorEntity and RestoreEntity inheritance (#88971) 2023-05-24 12:49:35 +02:00
Erik Montnemery 67c1051305
Allow setting an entity's name by its device class (#90767)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-05-09 18:55:55 +02:00
rrooggiieerr 7b8936b420
Add support for setting NumberMode using NumberEntityDescription (#92427) 2023-05-04 21:41:32 +02:00
epenet 1cca6f7c9e
Fix lingering timer in shelly (#92466) 2023-05-04 10:34:15 +02:00
Maciej Bieniek 5244f5731e
Do not reload Shelly TRV config entry (#92000) 2023-04-25 22:20:59 +02:00
Shay Levy 54a659c51b
Bump aioshelly to 5.3.2 (#91679) 2023-04-19 20:26:45 +03:00
Maciej Bieniek dea29f539f
Use `SensorDeviceClass.ENUM` and add state attributes translations in Shelly integration (#89660) 2023-03-15 18:52:42 +01:00
Maciej Bieniek 79bcdf43f7
Add `current` sensor for Shelly RPC devices (#88863) 2023-03-01 16:26:20 +01:00
Maciej Bieniek 7119a0f811
Use `suggested_display_precision` instead of rounding in Shelly sensor platform (#87084) 2023-02-20 10:20:52 -06:00
Maciej Bieniek 95bb019f71
Do not reload Shelly TRV entry when not needed (#88037)
* Do not reload the entry when the target temperature changes

* Do not reload the entry when the mode changes

* Increase test coverage

* Increase test coverage
2023-02-15 10:21:53 +01:00
Maciej Bieniek cd4ce86f07
Add support for `triple_push` event for Shelly gen2 devices (#88081)
* Add support for triple_push event

* Sort

* Fix tests
2023-02-15 10:20:27 +01:00
Erik Montnemery cc564026fa
Move EntityCategory to homeassistant.const (#87792)
* Move EntityCategory to homeassistant.const

* Fix more imports
2023-02-09 20:15:37 +01:00
Erik Montnemery 23fa500406
Sort manifests 9 (#87030) 2023-02-08 20:22:30 +01:00
Franck Nijhof 939eef3b28
Remove translations from Core (#87543)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
Franck Nijhof fcb612cd6f
Collection of code styling tweaks (#87344) 2023-02-03 23:51:27 +01:00
Shay Levy 3cb9b273c9
Add Shelly Pro 3EM energy sensors (#86476)
* Add Shelly Pro 3EM energy sensors

* Add total and total returned energy counters

* Set single phase energy counters disabled by default
2023-02-03 23:18:59 +02:00
GitHub Action ce79b26ab6 [ci skip] Translation update 2023-02-03 00:25:31 +00:00
Franck Nijhof 5e81d28116
Update black to 23.1.0 (#87188) 2023-02-02 18:35:24 +01:00
GitHub Action 0f80932709 [ci skip] Translation update 2023-02-02 00:25:01 +00:00
GitHub Action be73e43989 [ci skip] Translation update 2023-02-01 00:27:42 +00:00
Shay Levy 857df05308
Add Shelly Gen2 update entity for sleeping devices (#86837) 2023-01-30 19:05:13 +02:00
GitHub Action 0f6f63da64 [ci skip] Translation update 2023-01-29 00:26:29 +00:00
GitHub Action 072f228e4d [ci skip] Translation update 2023-01-28 00:23:36 +00:00
Shay Levy 803cd8d9a3
Handle state unknown if last state is missing in Shelly (#86813)
Shelly - handle state unknown if last state is missing
2023-01-27 23:34:56 +01:00
Shay Levy ae6bc96002
Shelly code quality (#86733) 2023-01-27 10:47:05 +02:00
GitHub Action 71d7098530 [ci skip] Translation update 2023-01-27 00:25:12 +00:00
Shay Levy 2c8cb13034
Bump aioshelly to 5.3.1 (#86751) 2023-01-27 00:34:31 +02:00
GitHub Action 7ab88fa713 [ci skip] Translation update 2023-01-26 00:23:39 +00:00
Maciej Bieniek dae7bcf387
Migrate Shelly to the new entity naming style (#86574)
* Use new entity naming style in Shelly

* Suggested change

* Use lower case for gen2 description
2023-01-25 09:55:52 +01:00
GitHub Action 9636fe4602 [ci skip] Translation update 2023-01-25 00:24:21 +00:00
J. Nick Koston 099b844dce
Migrate shelly to use async_forward_entry_setups (#86554)
Replaces deprecated async_setup_platforms with async_forward_entry_setups
2023-01-24 22:23:34 +02:00
Maciej Bieniek 9a68f0abe8
Store Shelly climate `last_target_temp` value in restore extra data (#86482)
fixes undefined
2023-01-24 07:28:34 -10:00
Shay Levy 0d3bf0e911
Fix Shelly sleeping Gen2 - update data upon initialize (#86544) 2023-01-24 18:38:27 +02:00
Jan Bouwhuis 66f12d7dab
Add translations for shelly ble scanner options in option flow (#86218)
* Add translations for shelly ble scanner options

* Remove redundant labels

* isort
2023-01-24 12:25:35 +01:00
Shay Levy 6d811d3fdb
Bump aioshelly to 5.3.0 (#86493) 2023-01-23 15:35:05 -10:00
Shay Levy e15aaf2853
Fix Shelly RPC key instances handling (#86479)
Fix Shelly key instances handling
2023-01-23 22:12:29 +02:00