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