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
Ville Skyttä
9b2544c923
Remove some unneeded pylint suppressions ( #32152 )
2020-02-24 16:47:15 -08:00
springstan
a85808e325
Add and use time related constants ( #32065 )
...
* Add and use time related constants
* Sort time constants and reuse them in data rate constants
* Fix greeneyemonitor import
* Fix greeneyemonitor import V2
* Fix failing here_travel_time test
* Add TIME_MONTHS and TIME_YEARS
* Use TIME_MINUTES in opentherm_gw and isy994
* Add and use TIME_MILLISECONDS
* Change inconsistent ones
* Add TIME_MICROSECONDS and TIME_WEEKS
* Use constants in apcupsd and travisci
* Fix import error in upnp sensor.py
* Fix isy994 sensor.py using TIME_YEARS
* Fix dyson tests
* Use TIME_SECONDS in more places
* Use TIME_DAYS in google wifi
2020-02-23 22:09:24 +02:00
HomeAssistant Azure
8257165562
[ci skip] Translation update
2020-02-23 00:31:50 +00:00
Alexei Chetroi
3385893b77
ZHA device channel refactoring ( #31971 )
...
* Add ZHA core typing helper.
* Add aux_channels to ZHA rule matching.
* Add match rule claim_channels() method.
* Expose underlying zigpy device.
* Not sure we need this one.
* Move "base" channels.
* Framework for channel discovery.
* Make DEVICE_CLASS and REMOTE_DEVICE_TYPE default dicts.
* Remove attribute reporting configuration registry.
* Refactor channels.
- Refactor zha events
- Use compound IDs and unique_ids
- Refactor signal dispatching on attribute updates
* Use unique id compatible with entities unique ids.
* Refactor ZHA Entity registry.
Let match rule to check for the match.
* Refactor discovery to use new channels.
* Cleanup ZDO channel.
Remove unused zha store call.
* Handle channel configuration and initialization.
* Refactor ZHA Device to use new channels.
* Refactor ZHA Gateway to use new discovery framework.
Use hass.data for entity info intermediate store.
* Don't keep entities in hass.data.
* ZHA gateway new discovery framework.
* Refactor ZHA platform loading.
* Don't update ZHA entities, when restoring from zigpy.
* ZHA entity discover tests.
* Add AnalogInput sensor.
* Remove 0xFC02 based entity from Keen smart vents.
* Clean up IAS channels.
* Refactor entity restoration.
* Fix lumi.router entities name.
* Rename EndpointsChannel to ChannelPool.
* Make Channels.pools a list.
* Fix cover test.
* Fix FakeDevice class.
* Fix device actions.
* Fix channels typing.
* Revert update_before_add=False
* Refactor channel class matching.
* Use a helper function for adding entities.
* Make Pylint happy.
* Rebase cleanup.
* Update coverage for ZHA device type overrides.
* Use cluster_id for single output cluster registry.
* Remove ZHA typing from coverage.
* Fix tests.
* Address comments.
* Address comments.
2020-02-21 18:06:57 -05:00
springstan
1ee7c483a7
Update file headers and outdated documentation links ( #32022 )
...
* Update documentation links
* Update file headers v2
2020-02-20 15:29:46 -08:00
HomeAssistant Azure
5839df39b5
[ci skip] Translation update
2020-02-20 00:31:46 +00:00
David F. Mulcahey
8255bdf3d5
Bump ZHA quirks and add skip configuration support ( #31982 )
...
* add skip configuration
* Bump quirks
* add skip configuration to FakeDevice
2020-02-19 09:19:26 -05:00
Balazs Sandor
41f3fb291a
Add ZHA Texas Instruments CC device support ( #31621 )
2020-02-09 12:13:22 -05:00
Alexei Chetroi
57ab30d534
Bump ZHA dependencies. ( #31619 )
...
Bump up zigpy-homeassistant==0.13.2
2020-02-08 06:50:50 -05:00
HomeAssistant Azure
274cf23269
[ci skip] Translation update
2020-02-07 00:31:50 +00:00
Alexei Chetroi
0e68ace3dd
Bump ZHA dependencies. ( #31555 )
2020-02-06 16:34:28 -05:00
David F. Mulcahey
06c8e53323
bump quirks ( #31355 )
2020-01-31 13:55:06 -05: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
Alexei Chetroi
24f4f53f16
ZHA dependencies bump ( #31295 )
...
* ZHA dependencies bump.
* Bump bellows-homeassistant.
2020-01-30 10:04:06 -05:00
Paulus Schoutsen
e9e44dbd97
Fix callback and async ( #31281 )
...
* Fix callback and async
* Fix a return
* Fix test
* Fix mqtt tests
* Fix some more callbacks
2020-01-29 13:59:45 -08:00
David F. Mulcahey
f4a4c6bea5
ZHA group and device cleanup ( #31260 )
...
* add dispatching of groups to light
* added ha device registry device id
* added zha group object
* add group event listener
* add and remove group members
* get group by name
* api cleanup
* clean up get device info
* create and remove zigpy groups
* clean up create and remove group api
* use device id
* use device id
* cleanup
* update test
* update tests to allow group events to flow
2020-01-29 12:24:43 -05:00
Alexei Chetroi
37af2170ec
Mark device unavailable when it leaves Zigbee network. ( #31264 )
2020-01-28 21:21:33 -05:00
HomeAssistant Azure
2c02334c1f
[ci skip] Translation update
2020-01-29 00:31:54 +00:00
David F. Mulcahey
7d9c8fdfa0
update remove service ( #31164 )
2020-01-27 08:54:31 -05:00
Bill Durr
e16e192b3c
improvements to zha cover ( #31144 )
2020-01-25 13:20:59 -05:00
Alexei Chetroi
217e280f8b
Update ZHA remotes registry to proper identify "remotes ( #31146 )
...
* Update ZHA remote device types.
* Remove `binary_sensor` entity from affected devices.
* Update ZHA Profiles.
Prevent DeviceType.ON_OFF_LIGHT_SWITCH from creating entities.
* Update tests and remove unused entities.
2020-01-25 12:42:19 -05:00
David F. Mulcahey
3c44a1353a
change group id creation ( #31075 )
2020-01-22 09:23:35 -05:00
Franck Nijhof
fb35d382e1
Remove all empty *_setup_platform() from integrations ( #31025 )
...
* Remove all empty *_setup_platform() from integrations
* Fix tests for smartthings
* Fix tests for heos
2020-01-21 12:38:38 +01:00
David F. Mulcahey
41014d73be
Allow ZHA device creation for the Zigbee coordinator ( #31032 )
...
* allow zha device creation for coordinator
* don't let coordinator get removed
* fix truthy issue in logical device type
2020-01-21 06:07:47 -05:00
Sébastien RAMAGE
1639432463
Bump zigpy-zigate to 0.5.1 ( #31004 )
...
* Bump zigpy-zigate to 0.5.1
Improve startup and channel setting
2020-01-20 13:09:20 -05:00
David F. Mulcahey
078ce24e5a
Add logical Zigbee device type to ZHA device info ( #30954 )
...
* add device type to device info
* capitalize
* use zigpy logical device type
2020-01-18 19:27:55 -05:00
Alexei Chetroi
26fb1ce255
Don't use unit_of_measurement in state attributes. ( #30941 )
2020-01-18 10:03:59 -05:00
Alexei Chetroi
3bf657284c
Refactor rounding for ZHA electrical measurement sensor ( #30923 )
2020-01-17 20:53:31 -05:00
Alexei Chetroi
58520aa733
Add battery voltage state attribute for ZHA devices ( #30901 )
...
* Add battery voltage state attribute for ZHA devices.
* Pylint.
2020-01-17 19:43:02 -05:00
David F. Mulcahey
31996120dd
add multistate back ( #30889 )
2020-01-17 13:06:10 -05:00
David F. Mulcahey
1b730b3055
Bump ZHA quirks to 0.0.31 ( #30740 )
...
* Bump ZHA quirks version
* update requirements
2020-01-13 13:10:22 -05:00
Bill Durr
4d6417295b
ZHA cover device support ( #30639 )
...
* ZHA cover device support
* flake8
* flake8, black
* isort
* pylint
* more test
* use zigpy provided functions
* black
* handle command errors, better state handling
* black
* more test
* lint
* Update ZHA cover tests coverage.
Co-authored-by: Alexei Chetroi <lexoid@gmail.com>
2020-01-11 22:42:14 -05:00
Alexei Chetroi
008dddb17c
Fix ZHA temperature sensor restoration ( #30661 )
...
* Add test for restoring state for zha temp.
* Don't restore unit of measurement for ZHA sensors.
Properly restore ZHA temperature sensor state.
2020-01-10 20:30:58 -05:00
Ville Skyttä
80cbc32c49
Spell Zigbee consistently, with lowercase "b" ( #30440 )
...
https://zigbeealliance.org/developer_resources/zigbee-specification/
"Please note that this uses old branding, Zigbee is always a lowercase
B, not a capital. This change occurred shortly after the official
release of this document."
Also other docs at https://zigbeealliance.org/solution_type/zigbee/ ,
https://github.com/zigpy/zigpy/issues/111
2020-01-06 08:32:10 -05:00
HomeAssistant Azure
d1ed67f44a
[ci skip] Translation update
2020-01-06 00:32:11 +00:00
David F. Mulcahey
6c89b6c5a2
Add Zigbee group binding to ZHA ( #30433 )
...
* initial group binding work
* add group cluster binding
2020-01-04 16:58:51 -05:00
Ville Skyttä
fa4fa30461
Various string cleanups ( #30435 )
...
* Remove some unnecessary string concatenations
* Replace some simple str.formats with f-strings
* Replace some string concatenations with f-strings
2020-01-03 14:47:06 +01:00
David F. Mulcahey
ef8eefc7a0
Remove ZHA establish device mappings function ( #30423 )
...
* remove establish_device_mappings
* inline init
2020-01-02 21:21:09 -05:00
Alexei Chetroi
a3061bda60
Make the rest of ZHA platforms to use ZHA class registry ( #30261 )
...
* Refactor ZHA component tests fixtures.
* Add tests for ZHA device discovery.
* Refactor ZHA registry MatchRule.
Allow callables as a matching criteria.
Allow sets for model & manufacturer.
* Minor ZHA class registry refactoring.
Less cluttered strict_matching registrations.
* Add entities only if there are any.
* Migrate rest of ZHA platforms to ZHA registry.
* Pylint fixes.
2019-12-31 11:09:58 -05:00
HomeAssistant Azure
ae51331d49
[ci skip] Translation update
2019-12-31 00:32:20 +00:00
HomeAssistant Azure
13116d8d3f
[ci skip] Translation update
2019-12-30 00:32:19 +00:00
Alexei Chetroi
36585558a5
Refactor ZHA channel logging ( #30259 )
...
Add channel.id property -- id unique for this the device only.
2019-12-28 15:41:55 -05:00
David F. Mulcahey
05a0922dc0
Bump ZHA dependencies ( #30228 )
...
* bump dependencies
* requirement files
* bump quirks to 0.0.30
2019-12-26 17:08:14 -05:00
HomeAssistant Azure
bb35d93fde
[ci skip] Translation update
2019-12-25 00:32:06 +00:00
David F. Mulcahey
85d2ba047b
Protect against bad data stored in ZHA ( #30183 )
2019-12-23 19:11:35 -05:00
Alexei Chetroi
fdaaabf070
ZHA binary_sensor cleanup. ( #30149 )
2019-12-22 14:07:49 -05:00
Alexei Chetroi
83768be814
Refactor ZHA binary_sensor ( #30138 )
...
* Refactor ZHA binary_sensor.
Use ZHA entity class registry for channel specific implementations.
* Remove registries.BINARY_SENSOR_TYPES dict.
* Address PR comments.
2019-12-22 13:24:57 -05:00
Alexei Chetroi
9c23c4adf2
Cleanup ZHAEntity class ( #30131 )
...
Remove `_domain` attribute since we're not using it anymore.
2019-12-21 18:33:00 -05:00
Alexei Chetroi
8e3dfbd5c9
Refactor ZHA electrical measurement sensor. ( #30130 )
2019-12-21 17:15:50 -05:00
Alexei Chetroi
fb3bb8220b
Implement ZHA entity classes registry ( #30108 )
...
* ZHA Entity registry.
Match a zha_device and channels to a ZHA entity.
* Refactor ZHA sensor to use registry.
* Remove sensor_types registry.
* Fix ZHA device tracker battery remaining.
* Remove should_poll/force_update attributes.
* Fix binary_sensor regression.
* isort.
* Pylint.
* Don't access protected members.
* Address comments and fix spelling.
* Make pylint happy again.
2019-12-21 16:26:58 -05:00
HomeAssistant Azure
95a6a7502a
[ci skip] Translation update
2019-12-16 00:32:25 +00:00
Alexei Chetroi
7685c76b9b
Defer log formatting. ( #29888 )
2019-12-12 14:16:02 -05:00
Alexei Chetroi
327b5c3c94
Log ZHA bind/unbind operations status ( #29842 )
...
* Log bind/unbind operation result.
* Use ZDO consts.
* Use device logger for bind/unbind results.
* Lint.
2019-12-12 12:16:51 -05:00
Alexei Chetroi
315d0064fe
Fix zha circular import ( #29802 )
...
* Refactor zha.core.helpers.
* Make zha isort-able.
* Const import reorg.
* Keep DATA_ZHA config key on entry unload.
* Cleanup ZHA config flow.
* isort.
* Add test.
2019-12-10 00:00:04 -05:00
HomeAssistant Azure
12f273eb11
[ci skip] Translation update
2019-12-10 00:32:16 +00:00
David F. Mulcahey
1222aa8c56
Add ZHA group API ( #29641 )
...
* add skeleton to retrieve zigbee groups
* get single group
* add a group
* return group members with group
* add comment
* fix group members
* add function to add device to group
* add group members
* add remove from group method
* add api to remove members from group
* add remove groups method
* clean up group add and remove
* fix remove group
* fix remove groups
* add api to get only groupable devices
* change var init
* add tests
* address review comment
2019-12-09 14:50:04 -05:00
Bas Nijholt
6cc75fc6f3
Sort imports according to PEP8 for components starting with "Z" ( #29784 )
...
* use isort to sort imports for components starting with 'z'
* add skip to end of zha/core/channels/__init__.py
* put 'pylint: disable=import-error' at the right place
* remove the import of config_flow in zha/__init__.py
According to @balloob it is no longer needed.
* revert previous commit
* isort:skip homeassistant/components/zha/__init__.py completely
2019-12-09 18:54:54 +01:00
springstan
1ee8057662
Move imports to top for zha ( #29555 )
...
* Move imports to top for zha
* Move back some imports, add annotation for disabling import-outside-toplevel
* Move import config_flow before import api
2019-12-06 16:12:46 -05:00
HomeAssistant Azure
8dc366c75b
[ci skip] Translation update
2019-11-29 00:32:07 +00:00
Ville Skyttä
99c7608fb4
Lint config cleanups ( #28864 )
...
* Remove bunch of unneeded lint exclusions
* Use symbolic names instead of identifiers in pylint disables
* Tighten scope of some pylint disables
2019-11-25 22:40:08 -08:00
Alexei Chetroi
4ba2bd232c
Command arguments for issue_zigbee_cluster_commands. ( #28885 )
2019-11-20 08:34:06 -05:00
Abílio Costa
e60ae77f1b
Add ZHA service to issue group commands ( #28823 )
...
* add service to ZHA to issue group commands
* fix args
2019-11-19 19:49:09 -05: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
David F. Mulcahey
376e3def1d
Bump ZHA quirks to 0.0.28 ( #28750 )
2019-11-13 09:25:45 -05:00
Alexei Chetroi
cfa689c3a6
Bump up ZHA dependencies. ( #28711 )
2019-11-11 20:53:23 -05:00
David F. Mulcahey
f2c56cff43
Bump ZHA quirks version ( #28636 )
2019-11-08 09:12:50 -08:00
HomeAssistant Azure
265c390b65
[ci skip] Translation update
2019-11-07 00:32:16 +00:00
HomeAssistant Azure
4863face69
[ci skip] Translation update
2019-11-02 00:31:48 +00:00
Alexei Chetroi
89213a4ce8
Don't set entity_id in ZHA entities ( #28362 )
...
* Don't set entity_id on ZHA entities.
* Update tests.
* Use comma as separator for multiple channel names.
* Address PR comments.
2019-10-31 12:31:06 -04:00
HomeAssistant Azure
72dee7dd21
[ci skip] Translation update
2019-10-28 00:32:16 +00:00
Alexei Chetroi
969322e14a
Fixes/zha ieee tail ( #28160 )
...
* Fix ZHA entity_id assignment.
* Update tests.
2019-10-24 12:23:02 -04:00
Paulus Schoutsen
23289459ca
Update translations
2019-10-23 13:36:38 -07:00
HomeAssistant Azure
2cc039dbc4
[ci skip] Translation update
2019-10-22 00:32:10 +00:00
Alexei Chetroi
fe7c45b363
Move remaining of ZHA imports to top level. ( #28071 )
...
* Move ZHA import to top level.
* ZHA tests: move imports to top level.
2019-10-21 19:30:56 -04:00
Alexei Chetroi
a0c50f4794
Leverage zigpy for IEEE address conversions ( #27972 )
...
* Refactor EUI64 conversions.
* Update ZHA dependencies.
* Update tests.
2019-10-21 13:14:17 -04:00
HomeAssistant Azure
9e8c391c81
[ci skip] Translation update
2019-10-19 00:32:15 +00:00
HomeAssistant Azure
b8e00925e7
[ci skip] Translation update
2019-10-16 00:32:17 +00:00
HomeAssistant Azure
d8e3255603
[ci skip] Translation update
2019-10-15 00:31:44 +00:00
Erik Montnemery
c7bd0fe909
Fix ZHA regressions caused by "Support async validation of device trigger" ( #27401 )
...
* Revert "Support async validation of device trigger (#27333 )"
This reverts commit fdf4f398a7
.
* Revert only ZHA changes
* Fix whitespace
* Restore ZHA changes but add check to make sure ZHA is loaded
* Address review comment
* Remove additional check
2019-10-14 14:11:43 -04:00
HomeAssistant Azure
b37f0ad812
[ci skip] Translation update
2019-10-14 00:32:27 +00:00
HomeAssistant Azure
62b886a5d5
[ci skip] Translation update
2019-10-13 00:31:39 +00:00
HomeAssistant Azure
78a08d0425
[ci skip] Translation update
2019-10-12 00:31:47 +00:00
HomeAssistant Azure
4c71c6df6f
[ci skip] Translation update
2019-10-11 00:31:40 +00:00
HomeAssistant Azure
762a714d87
[ci skip] Translation update
2019-10-10 00:31:40 +00:00
Erik Montnemery
fdf4f398a7
Support async validation of device trigger ( #27333 )
2019-10-09 21:04:11 +02:00
Sébastien RAMAGE
1257706bd9
Update zigpy-zigate to 0.4.1 ( #27345 )
...
* Update zigpy-zigate to 0.4.1
Fix #27297
* Update zigpy-zigate to 0.4.1
Fix #27297
2019-10-09 08:47:43 -04:00
HomeAssistant Azure
768bb00177
[ci skip] Translation update
2019-10-09 00:32:17 +00:00
Erik Montnemery
0ba4ee1398
Validate generated device actions ( #27262 )
...
* Validate generated actions
* Use hass.services.async_call instead of service.async_call_from_config
2019-10-08 10:06:17 -07:00
HomeAssistant Azure
1087abd3b5
[ci skip] Translation update
2019-10-08 00:32:12 +00:00
Erik Montnemery
dabdf8b577
Validate generated device triggers ( #27264 )
...
* Validate generated trigger
* Update scaffold
2019-10-07 13:09:48 -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
HomeAssistant Azure
85947591c5
[ci skip] Translation update
2019-10-04 00:32:16 +00:00
HomeAssistant Azure
e005f6f23a
[ci skip] Translation update
2019-10-03 00:34:28 +00:00
Alexei Chetroi
e011a94ce9
Bump up ZHA dependencies. ( #27127 )
2019-10-02 15:51:52 -07:00
Erik Montnemery
65ce3b49c1
Add support for `for` to binary_sensor, light and switch device triggers ( #26658 )
...
* Add support for `for` to binary_sensor, light and switch device triggers
* Add WS API device_automation/trigger/capabilities
2019-10-02 22:14:52 +02:00
Franck Nijhof
d4a67e3a30
Update documentation link URL for integrations (part2) ( #27117 )
2019-10-02 09:34:07 -07:00
Franck Nijhof
c7da781efc
Update documentation link URL for integrations in all manifests ( #27114 )
2019-10-02 09:25:44 -07:00
HomeAssistant Azure
2090d650c6
[ci skip] Translation update
2019-10-02 00:32:11 +00:00
HomeAssistant Azure
513d2652e4
[ci skip] Translation update
2019-10-01 00:32:19 +00:00