Franck Nijhof
258b388f41
Collection of changing entity properties to class attributes ( #51248 )
...
* Collection of changing entity properties to class attributes
* Apply suggestions from code review
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-05-31 10:50:11 +02:00
Erik Montnemery
b169a8dbda
Mark battery, humidity and pressure sensors as STATE_CLASS_MEASUREMENT ( #50924 )
...
* Mark battery, humidity and pressure sensors as STATE_CLASS_MEASUREMENT
* Fix deconz battery sensor
2021-05-24 11:36:42 +02:00
Erik Montnemery
73d7a754e8
Mark temperature sensors as STATE_CLASS_MEASUREMENT ( #50889 )
...
* Mark temperature sensors as STATE_CLASS_MEASUREMENT
* Fix broadlink tests
* Tweak Hue changes
2021-05-21 11:44:34 +02:00
Erik Montnemery
0c086b5067
Migrate integrations w-z to extend SensorEntity ( #48217 )
2021-03-22 19:50:29 +01:00
starkillerOG
b2efcb3c22
Support all Xiaomi Miio gateway switches ( #46657 )
...
* Support all gateway switches
* fix checks
* process revieuw
* Update homeassistant/components/xiaomi_miio/switch.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* generilize variable matching
* fix styling
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-15 12:15:34 +01:00
starkillerOG
50b5fc4860
Add Xiaomi Miio subdevice lightbulb support ( #46660 )
...
* Xiaomi Miio: add subdevice lightbulb support
* fix tests
* process revieuw comments
* bump python-miio to 0.5.5
* bump python-miio to 0.5.5
* fix imports
2021-03-14 12:32:19 +01:00
Erik Montnemery
1fc8e32d86
Update integrations t-z to override extra_state_attributes() ( #47760 )
2021-03-11 20:16:26 +01:00
starkillerOG
724574d336
Add Xiaomi Miio sensor config flow ( #46964 )
...
* add config flow
* fix styling
* Add air_quality platform
* fix imports
* fix black
* Update homeassistant/components/xiaomi_miio/sensor.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/xiaomi_miio/air_quality.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* process revieuw feedback
* remove unused import
* fix formatting
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-11 11:48:48 +01:00
tkdrob
3baeed3684
Clean up constants ( #47323 )
2021-03-05 19:08:04 +01:00
Sebastian Muszynski
541e166317
Fix measurement unit ( Closes : #47390 ) ( #47398 )
2021-03-04 13:12:04 -08:00
Ville Skyttä
dc880118a4
Lint suppression cleanups ( #47248 )
...
* Unused pylint suppression cleanups
* Remove outdated pylint bug references
* Add flake8-noqa config and note to run it every now and then
* Add codes to noqa's
* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
starkillerOG
9d8ba6af96
Use update coordinator for Xioami Miio subdevices ( #46251 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-02-16 15:28:25 +01:00
starkillerOG
2f9fda73f4
Add config flow to Xiaomi Miio switch ( #46179 )
2021-02-15 20:11:27 +01:00
Teemu R
bdb71c9159
Only log xiaomi_miio update exceptions once ( #41226 )
...
* xiaomi_miio: only log update exceptions once
Replaces #37695
* add som more missed exception logger cases + do not change the control flow as pointed out by @cgtobi
* Use patch&MagickMock from tests.async_mock
* Fix linting for alarm_control_panel
* update the test to verify that the warning on update is only logged when the device was previously available
2020-10-25 01:53:36 +02:00
javicalle
73f52c829a
Remove illuminance sensor for Xiaomi EU gateway ( #41580 )
...
Xiaomi EU gateway don't support the `XiaomiGatewayIlluminanceSensor`.
2020-10-10 14:43:06 +02:00
springstan
f47d58d9c2
Remove unnecessary should poll from sensor classes ( #41219 )
...
* Remove unnecessary should poll from sensor classes
* Remove two more occurrences
2020-10-04 21:35:59 +02:00
springstan
6c8e0e20fb
Add and use light lux constant in entire code base ( #40171 )
2020-09-23 20:48:01 +02:00
springstan
d2b1918e9c
Drop UNIT_ prefix for percentage constant ( #39383 )
2020-09-05 21:09:14 +02:00
starkillerOG
f187091594
Add Xiaomi Miio gateway illuminance sensor and gateway light ( #37959 )
...
Co-authored-by: Xiaonan Shen <s@sxn.dev>
Co-authored-by: Teemu R. <tpr@iki.fi>
2020-08-31 13:27:57 +02:00
Ville Skyttä
b4bac0f7a0
Exception chaining and wrapping improvements ( #39320 )
...
* Remove unnecessary exception re-wraps
* Preserve exception chains on re-raise
We slap "from cause" to almost all possible cases here. In some cases it
could conceivably be better to do "from None" if we really want to hide
the cause. However those should be in the minority, and "from cause"
should be an improvement over the corresponding raise without a "from"
in all cases anyway.
The only case where we raise from None here is in plex, where the
exception for an original invalid SSL cert is not the root cause for
failure to validate a newly fetched one.
Follow local convention on exception variable names if there is a
consistent one, otherwise `err` to match with majority of codebase.
* Fix mistaken re-wrap in homematicip_cloud/hap.py
Missed the difference between HmipConnectionError and
HmipcConnectionError.
* Do not hide original error on plex new cert validation error
Original is not the cause for the new one, but showing old in the
traceback is useful nevertheless.
2020-08-28 13:50:32 +02:00
starkillerOG
3ad59f877c
Fix xiaomi_miio error when no sensors present ( #37531 )
2020-07-05 13:06:28 -07:00
starkillerOG
ffcdd85117
Xiaomi Gateway subdevice support & AqaraHT + SensorHT devices ( #36539 )
...
* Gateway subdevice support & AqaraHT + SensorHT devices
* Gateway subdevice support & AqaraHT + SensorHT devices
* Add starkillerOG to codeowners
as proposed by @rytilahti in this issue: https://github.com/home-assistant/core/issues/36516
* add starkillerOG to xiaomi_miio
* fix config flow tests
* Update CODEOWNERS
* Update manifest.json
* prosess revieuw comments
* fix missing import
* use proper pressure unit hPa
* subdevice --> sub_device
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* subdevice --> sub_device
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* use key acces instead of get
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* subdevice --> sub_device
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* subdevice --> sub_device
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* subdevice --> sub_device
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* subdevice --> sub_device
* use dataclass instead of namedtuple
* update to newest python-miio functions (not yet released)
* Move device info to entitie
* remove unused variable
* improve default names
* SensorHT does not support pressure
* bump python-miio to 0.5.2
* bump python-miio to 0.5.2
* bump python-miio to 0.5.2
* Fix missing brackets
Co-authored-by: Teemu R. <tpr@iki.fi>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Teemu R. <tpr@iki.fi>
2020-07-04 14:56:16 +02:00
Tomasz
f8d3ea20b6
Move imports in xiaomi_miio ( #27773 )
...
* move imports in xiaomi_miio
* reorder imports with isort
* fix pylint error
* Rename imports
2019-11-08 18:32:44 +01:00
Sebastian Muszynski
5b96704c4a
Use dict[key] for required config keys ( #28304 )
...
* Use dict[key] for required config keys
* Change CONF_NAME too because it has a default
2019-10-29 01:45:22 +01:00
Sebastian Muszynski
a0f764cf6d
Remove blocking I/O from the event loop ( #28305 )
2019-10-29 01:44:26 +01:00
Franck Nijhof
dae6895a95
Use literal string interpolation in integrations X-Z (f-strings) ( #26395 )
2019-09-03 21:15:31 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd
.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2c
.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Sebastian Muszynski
f4102339c1
Bump python-miio version ( #22202 )
...
* Bump python-miio version
* Rename speed property to motor_speed
* Enable set_led service of the Air Humidifier
* Allow a favorite level in [0...17]
* Allow a scene in [0...6]
2019-03-21 08:56:36 +01:00
Fabian Affolter
127c55e0c1
Update file header ( #21023 )
...
* Update file header
* Update file header
* Update file header
* Update file header
* Update file header
* Fix lint issues
2019-02-13 21:21:14 +01:00
Paulus Schoutsen
e2d3c27e85
Embed all platforms into components ( #20677 )
...
* Consolidate all components with platforms
* Organize tests
* Fix more tests
* Fix Verisure tests
* one final test fix
* Add change
* Fix coverage
2019-02-02 07:13:16 -08:00