Commit graph

632 commits

Author SHA1 Message Date
Joost Lekkerkerker
ac53b78a0c
Deduplicate constants A-D (#105638) 2023-12-13 14:21:44 +01:00
Jan Bouwhuis
953a212dd6
Use ServiceValidationError for invalid fan preset_mode and move check to fan entity component (#104560)
* Use ServiceValidationError for fan preset_mode

* Use _valid_preset_mode_or_raise to raise

* Move preset_mode validation to entity component

* Fix bond fan and comments

* Fixes baf, fjaraskupan and template

* More integration adjustments

* Add custom components mock and test code

* Make NotValidPresetModeError subclass

* Update homeassistant/components/fan/strings.json

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Keep bond has_action validation

* Move demo test asserts outside context block

* Follow up comment

* Update homeassistant/components/fan/strings.json

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Fix demo tests

* Remove pylint disable

* Remove unreachable code

* Update homeassistant/components/fan/__init__.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Use NotValidPresetModeError, Final methods

* Address comments

* Correct docst

* Follow up comments

* Update homeassistant/components/fan/__init__.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-11-29 13:56:51 +01:00
Teemu R
e151358aa1
Allow model-specific lazy_discover setting for xiaomi_miio (#100490) 2023-10-16 14:30:05 +02:00
Teemu R
7c4f08e6b3
Fix xiaomi_miio button platform regression (#100527) 2023-09-19 17:15:43 +02:00
Ville Skyttä
b51c0f6ddc
Remove unnnecessary pylint configs from components [s-z]* (#98925) 2023-08-24 01:25:32 +02:00
Marc Mueller
8b0fdd6fd2
Use asyncio.timeout [s-z] (#98452) 2023-08-15 14:34:18 +02:00
Erik Montnemery
045c327928
Move DeviceInfo from entity to device registry (#98149)
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
Marc Mueller
4e9ce235e8
Update construct to 2.10.68 (#96843) 2023-07-18 17:50:31 +02:00
c0ffeeca7
aa13082ce0
Rename 'life' to 'lifetime' in Xiaomi Miio (#96817)
String review: rename 'life' to 'lifetime'

- The term life, such as in 'filter life' can be ambiguous.
- Renamed to 'lifetime', as quite a few integrations use the term 'lifetime' to express this concept
- Improves consistency and should be easier to understand.
2023-07-18 10:13:33 +02:00
Paulus Schoutsen
7859be6481
Add deduplicate translations script (#96384)
* Add deduplicate script

* Fix forecast_solar incorrect key with space

* Fix utf-8

* Do not create references to other arbitrary other integrations

* Add commented code to only allow applying to referencing integrations

* Tweak

* Bug fix

* Add command line arg for limit reference

* never suggest to update common keys

* Output of script

* Apply suggestions from code review

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2023-07-13 11:52:50 -04:00
Franck Nijhof
8d360611d1
Migrate integration services (W-Z) to support translations (#96381) 2023-07-12 07:36:51 +02:00
Joost Lekkerkerker
2f6826dbe3
Use DeviceInfo object s-x (#96281)
* Use DeviceInfo object o-x

* Use DeviceInfo object
2023-07-11 13:40:15 -04:00
Jan-Philipp Benecke
be01eb5aad
Explicitly use device name as entity name for Xiaomi fan and humidifier (#95986) 2023-07-06 13:25:34 +02:00
Jan Bouwhuis
c26dc0940c
Use common translations for On, Off, Open and Closed (#95779)
* Use common translations for On and Off

* Used common translations for open and closed

* Update homeassistant/components/sensibo/strings.json

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Only update state translations

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-07-04 13:52:01 +02:00
Paulus Schoutsen
9cace8e4bd
Fix some entity naming (#95562) 2023-06-29 13:11:17 -04:00
zry98
bafb81337b
Add buttons for resetting vacuum consumable status in xiaomi_miio (#91483)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Eugenio Panadero <eugenio.panadero@gmail.com>
2023-06-27 21:58:29 +02:00
Jan Bouwhuis
c4d7695173
Add current_humidity attribute to xiaomi_miio humidifiers (#94934) 2023-06-20 20:15:42 +02:00
Sander
c79b9d0b07
Fix: Xiaomi Miio Fan, delay off countdown unit conversion (#94428) 2023-06-12 08:25:09 +02:00
Sebastian Muszynski
2d62735b0d
Fix deprecated asyncio.wait use with coroutines (#94371) 2023-06-11 20:01:41 +02:00
Ville Skyttä
1ce74ba25c
Import util.dt as dt_util in components/[t-z]* (#93763) 2023-05-29 23:00:43 +02:00
epenet
d173590477
Remove combined translations in integrations (#91337)
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2023-04-15 15:51:04 +02:00
mrwogu
7eccef87c2
Disable lazy discover in xiaomi_miio (#82601)
* Add lazy discover config option to xiaomi_miio (#59215)

* disable lazy_discover for default

* extend tests to support lazy_discover

* revert config option
2023-04-07 16:27:59 +02:00
epenet
04872f72ea
Improve humidifier type hints in integrations (#90030)
Fix humidifier type hints in integrations
2023-03-21 10:32:13 +01:00
Kirill Kulakov
d1734bc0ab
Xiaomi Air Purifier S2 illuminance sensor support (#89208)
* Add sensor illuminance sensor support xiaomi s2 air purifier

* Add sensor illuminance sensor support xiaomi s2 air purifier

* fix sorting
2023-03-09 19:15:14 +01:00
epenet
4a3c0cd0a8
Adjust docstrings for ruff D404 (#89077) 2023-03-03 11:26:13 +01:00
Franck Nijhof
f67ebcade1
Enable Ruff SIM201 (#88171) 2023-02-15 14:43:02 +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
6c2702a7b8
Sort manifests 11 (#87032) 2023-02-08 20:10:18 +01:00
Kirill Kulakov
258357c2cd
Xiaomi 2S air purifier mode selection support (#86649)
* Xiaomi 2S air purifier mode selection support

* Update homeassistant/components/xiaomi_miio/select.py

Co-authored-by: Teemu R. <tpr@iki.fi>

* rename fix translation keys and rename key to be specific to airpurifiers

Co-authored-by: Teemu R. <tpr@iki.fi>
2023-02-06 16:42:11 +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
epenet
bb3e0633a4
Add init return type to integrations (#87523)
Add type hints to integrations
2023-02-06 11:37:25 +01:00
Franck Nijhof
fcb612cd6f
Collection of code styling tweaks (#87344) 2023-02-03 23:51:27 +01:00
Franck Nijhof
ca1a12898c
Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
epenet
8a58d1d321
Improve type hints in Xiaomi Miio (#87167)
Imrpove type hints in Xiaomi Miio
2023-02-02 16:32:12 -05:00
Marc Mueller
07a3046d11
Update pylint to 2.16.0 (#87083) 2023-02-02 12:49:01 +01:00
GitHub Action
4d215e573c [ci skip] Translation update 2023-01-23 00:23:13 +00:00
GitHub Action
d1ecc418bb [ci skip] Translation update 2023-01-19 00:25:04 +00:00
GitHub Action
77f9548e51 [ci skip] Translation update 2023-01-15 00:25:52 +00:00
GitHub Action
dffc913f9e [ci skip] Translation update 2023-01-14 00:22:57 +00:00
Marc Mueller
2e989b16ad
Improve DataUpdateCoordinator typing in integrations (9) (#85332) 2023-01-07 14:52:06 +01:00
GitHub Action
bdd87bcc87 [ci skip] Translation update 2023-01-06 00:23:50 +00:00
GitHub Action
01e99c0229 [ci skip] Translation update 2023-01-05 00:23:39 +00:00
GitHub Action
5169721916 [ci skip] Translation update 2023-01-04 00:22:58 +00:00
GitHub Action
5c7120aa36 [ci skip] Translation update 2023-01-01 00:25:49 +00:00
epenet
4c8e3aa7c4
Remove lumen from Illuminance units (#84386) 2022-12-27 14:25:47 +01:00
Franck Nijhof
8819634b61
String formatting and max line length - Part 6 (#84525) 2022-12-24 13:19:51 +01:00
GitHub Action
31a3f1100a [ci skip] Translation update 2022-12-24 00:19:43 +00:00
epenet
fba13dcc90
Use UnitOfTime in integrations (t-z) (#84291) 2022-12-20 12:30:14 +01:00
GitHub Action
b9753a9f92 [ci skip] Translation update 2022-12-13 00:27:47 +00:00
Brandon Rothweiler
f24f0c2954
Fix incorrect usage of 'setup' vs 'set up' (#83774) 2022-12-12 11:40:00 +01:00