Martin Hjelmare
bde0bdbf80
Clean tradfri hass data and add tests ( #39620 )
2020-09-03 18:39:24 +02:00
Paulus Schoutsen
948ec80b6e
Bump pytradfri to 7.0.0, support multiple gateways ( #39609 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-09-03 14:47:14 +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
HomeAssistant Azure
195d4b6897
[ci skip] Translation update
2020-08-27 00:04:55 +00:00
HomeAssistant Azure
251a1d6619
[ci skip] Translation update
2020-07-09 00:05:04 +00:00
Franck Nijhof
3cc94f7d6a
ConfigFlow default discovery without unique ID ( #36754 )
2020-06-15 13:38:38 +02:00
HomeAssistant Azure
c10aa13d0b
[ci skip] Translation update
2020-05-20 00:03:49 +00:00
HomeAssistant Azure
9586e9ebef
[ci skip] Translation update
2020-05-15 00:02:56 +00:00
Paulus Schoutsen
0efeefe3b2
Update translations
2020-05-13 11:27:21 -07:00
Paulus Schoutsen
dd32324e01
Use config flow references for data ( #35529 )
2020-05-12 10:50:44 -07:00
HomeAssistant Azure
78f846d532
[ci skip] Translation update
2020-05-03 00:02:26 +00:00
Paulus Schoutsen
8f9467492d
Remove some passings of loop ( #34995 )
2020-04-30 21:34:51 -07:00
HomeAssistant Azure
5d37eb8eeb
[ci skip] Translation update
2020-04-30 00:03:17 +00:00
HomeAssistant Azure
e13f78dfc5
[ci skip] Translation update
2020-04-28 00:04:52 +00:00
Paulus Schoutsen
13c8c2e841
Add unique ID to TRADFRI ( #34745 )
2020-04-27 01:57:29 +02:00
Erik Montnemery
066e921a8b
Rename SwitchDevice to SwitchEntity ( #34673 )
2020-04-26 18:50:37 +02:00
Erik Montnemery
e4333a7a44
Rename Light to LightEntity ( #34593 )
2020-04-26 18:49:41 +02:00
Erik Montnemery
8c5c963b96
Rename CoverDevice to CoverEntity ( #34595 )
2020-04-25 18:07:15 +02:00
Joakim Sørensen
730a257f3c
Rename translations dir for integrations ( #34494 )
2020-04-21 16:11:05 -07:00
Paulus Schoutsen
0d60d40512
Update translations
2020-04-16 13:00:10 -07:00
Paulus Schoutsen
55dfca7467
Drop title from translations if brand name ( #34306 )
2020-04-16 12:52:53 -07:00
HomeAssistant Azure
0d8c75d9ce
[ci skip] Translation update
2020-04-16 00:04:36 +00:00
Paulus Schoutsen
86f09a42a2
Fix translations
2020-04-15 10:00:37 -07:00
Paulus Schoutsen
f06aeea385
Update translations
2020-04-15 09:51:07 -07:00
Paulus Schoutsen
d36204a968
Move title translation to root ( #33850 )
2020-04-15 09:41:18 -07:00
Kris Bennett
f2fbe657c4
Add tradfri cover model to the cover entity attributes ( #33674 )
...
* Ikea Blind Battery
* Ikea Blind Battery
* Ikea Blind Battery
* Ikea Blind Battery
* IKEA Blinds Battery
* IKEA Blinds Battery
* Update cover.py
* Clean up
* Remove unused import
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
2020-04-09 19:37:55 +02:00
Paulus Schoutsen
f1d3c0d19b
Remove unused manifest fields ( #33595 )
2020-04-03 12:58:19 -07:00
Paulus Schoutsen
aaa1d06809
Directly call async_write_ha_state ( #33508 )
...
* Directly call async_write_ha_state
* Address comments
* Fix tests
2020-04-01 14:19:51 -07:00
springstan
f1a0ca7cd3
Add and use percentage constant ( #32094 )
...
* Add and use percentage constant
* Fix pylint error and broken test
2020-02-28 11:46:48 -08:00
HomeAssistant Azure
118ba10442
[ci skip] Translation update
2020-02-10 00:31:37 +00:00
HomeAssistant Azure
a2bea2cab8
[ci skip] Translation update
2020-02-09 00:31:39 +00:00
Christian Clauss
df7d2b3aeb
Fix typos found by codespell ( #31243 )
...
* Fix typos found by codespell
* Fix typos found by codespell
* codespell: Furture ==> Future
* Update test_config_flow.py
* Update __init__.py
* Spellcheck: successfull ==> successful
* Codespell: unsuccesful ==> unsuccessful
* Codespell: cant ==> can't
* Codespell: firware ==> firmware
* Codespell: mimick ==> mimic
2020-01-31 08:33:00 -08:00
HomeAssistant Azure
d6512c8a9f
[ci skip] Translation update
2020-01-11 00:31:55 +00:00
Franck Nijhof
b4d6d238e5
Correct names in manifests (T-Z) ( #30546 )
2020-01-07 14:31:18 +01:00
springstan
9fbb345ce0
Move imports to top for tradfri ( #29247 )
2019-11-30 21:23:39 -08:00
Ville Skyttä
d88ca0f5cb
Lint exclusions ( #28655 )
...
* Remove malformed pylint disable markers
* Remove some unused imports
* Remove some unneeded lint exclusions
* Remove more unneeded lint exclusions
* Add specific codes to all noqa's
2019-11-16 10:22:07 +01:00
HomeAssistant Azure
0e4331e922
[ci skip] Translation update
2019-10-29 00:32:16 +00:00
Joakim Sørensen
67cf7c26da
Removes unwanted tradfri battery sensor ( #28181 )
2019-10-24 23:25:47 +02:00
Joakim Sørensen
ec478ab848
Add stop feature to tradfri covers ( #28180 )
...
* Tradfri cover enhancements
* tradfri dependency update
* Revert addition of battery attrubite
* Remove the supported_features property
* Remove unwanted file
2019-10-24 13:38:24 -07:00
Joakim Sørensen
b61218f90e
Tradfri config flow enhancements ( #28179 )
2019-10-24 21:31:58 +02:00
Paulus Schoutsen
23289459ca
Update translations
2019-10-23 13:36:38 -07:00
Patrik
86347a3d5f
Refactor Tradfri light group ( #27714 )
...
* Set same manufacturer name of gateway as of devices
* Refactor Tradfri light group
* Restore should_poll and async_update
2019-10-21 21:42:17 +02:00
HomeAssistant Azure
d8e3255603
[ci skip] Translation update
2019-10-15 00:31:44 +00:00
Patrik
3454b6fa87
Refactor Tradfri base class ( #27589 )
...
* Refactor Tradfri base class
* Clarify doc
* Fix pylint
* Review fix
* Move
2019-10-13 13:59:28 -07:00
Patrik
0235487a22
Move top level imports ( #27597 )
2019-10-13 13:56:01 -07:00
Patrik
86386912b9
Refactor Tradfri cover ( #27413 )
...
* Remove unused logging
* Refactor cover
* Remove method
* Fix typo and use consistent wording for gateway
* Revert changes
2019-10-12 17:53:25 +02:00
Patrik
78e9bba279
Refactor Tradfri constants ( #27334 )
...
* Refactor constants
* Rename constant
* Rename constant
* Rename constant
* Review update
* Remove duplicate constant
* Reorder constants
* Dont refresh features
* Order package imports
* Fix bug
* Put back features in refresh
* Fix import order
* Refactor supported features
* Refactor supported features, take 2
2019-10-09 12:56:16 -07:00
Patrik
fe155faf6a
Refactor tradfri light ( #27259 )
...
* Refactor light file
* Update following review
2019-10-07 10:43:47 -07:00
Ville Skyttä
761d7f21e9
Upgrade pylint ( #27279 )
...
* Upgrade pylint to 2.4.2 and astroid to 2.3.1
https://pylint.readthedocs.io/en/latest/whatsnew/2.4.html
https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-1
https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-2
* unnecessary-comprehension fixes
* invalid-name fixes
* self-assigning-variable fixes
* Re-enable not-an-iterable
* used-before-assignment fix
* invalid-overridden-method fixes
* undefined-variable __class__ workarounds
https://github.com/PyCQA/pylint/issues/3090
* no-member false positive disabling
* Remove some no longer needed disables
* using-constant-test fix
* Disable import-outside-toplevel for now
* Disable some apparent no-value-for-parameter false positives
* invalid-overridden-method false positive disables
https://github.com/PyCQA/pylint/issues/3150
* Fix unintentional Entity.force_update override in AfterShipSensor
2019-10-07 08:17:39 -07:00
Patrik
1059cea28f
Refactor IKEA Tradfri, part 2 ( #27245 )
...
* Add more device info data
* Add attributes to device_info
* Refactor sensor
* Filter
devices
* Update following review
* Update following review
* Add device_Class
2019-10-06 19:24:56 +02:00