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
dc15b9c28e
[ci skip] Translation update
2020-02-22 00:31:49 +00:00
Paulus Schoutsen
e019280d94
Annotate more async functions correctly ( #31802 )
2020-02-14 10:00:22 -08:00
HomeAssistant Azure
a2bea2cab8
[ci skip] Translation update
2020-02-09 00:31:39 +00:00
HomeAssistant Azure
0534153ae7
[ci skip] Translation update
2020-01-13 00:31:54 +00:00
Phil Bruckner
260596d11b
Fix upnp raw sensor state formatting when None ( #30444 )
2020-01-09 06:51:30 +01:00
Franck Nijhof
b4d6d238e5
Correct names in manifests (T-Z) ( #30546 )
2020-01-07 14:31:18 +01:00
Franck Nijhof
a84741392b
Format all manifests with prettier ( #30521 )
2020-01-06 21:28:23 +01:00
Ville Skyttä
5216477353
Be consistent with Home Assistant and Hass.io spelling ( #30500 )
...
* Be consistent with Home Assistant spelling
* Be consistent with Hass.io spelling
2020-01-05 14:09:17 +02:00
HomeAssistant Azure
13116d8d3f
[ci skip] Translation update
2019-12-30 00:32:19 +00:00
HomeAssistant Azure
bb35d93fde
[ci skip] Translation update
2019-12-25 00:32:06 +00:00
Ville Skyttä
a12cf7211d
Upgrade pydocstyle to 5.0.1 ( #29830 )
...
* Upgrade pydocstyle to 5.0.1
http://www.pydocstyle.org/en/5.0.1/release_notes.html
* Pydocstyle and other docstring fixes
2019-12-10 23:25:06 +01:00
HomeAssistant Azure
12f273eb11
[ci skip] Translation update
2019-12-10 00:32:16 +00:00
Ville Skyttä
d257fff9ce
Use "kB" and "s" as UPnP/IGD units ( #29552 )
...
For consistency with various existing components, and they're more
commonly used and compact than "kbyte" and "sec".
2019-12-06 23:24:11 +05:30
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
Quentame
5015993f30
Move upnp imports at top-level ( #29083 )
2019-11-25 15:37:03 -08:00
Steven Looman
d7f45a47f5
Upgrade async_upnp_client==0.14.12 ( #28733 )
2019-11-13 07:43:38 +01:00
escoand
82729bef70
Show all UPNP/IGD sensors in one device ( #27517 )
...
* show all UPNP/IGD sensors in one device
* use device name correctly
* Use id of device
2019-10-31 20:51:35 +01:00
HomeAssistant Azure
95295791bd
[ci skip] Translation update
2019-10-25 00:32:15 +00:00
Paulus Schoutsen
23289459ca
Update translations
2019-10-23 13:36:38 -07:00
HomeAssistant Azure
d8e3255603
[ci skip] Translation update
2019-10-15 00:31:44 +00:00
Paulus Schoutsen
54c24de158
Install requirements for all deps with tests ( #27362 )
...
* Install requirements for all deps with tests
* Remove unused REQUIREMENTS var
* Print diff if not the same
* Simplify
* Update command line
* Fix detecting empty dirs
* Install non-integration
* Fix upnp tests
* Lint
* Fix ZHA test
2019-10-09 16:16:29 -07:00
HomeAssistant Azure
768bb00177
[ci skip] Translation update
2019-10-09 00:32:17 +00: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
2c6a869bc6
[ci skip] Translation update
2019-10-06 00:32:15 +00:00
Franck Nijhof
c7da781efc
Update documentation link URL for integrations in all manifests ( #27114 )
2019-10-02 09:25:44 -07:00
HomeAssistant Azure
b04a70995e
[ci skip] Translation update
2019-09-27 00:32:12 +00:00
Tsvi Mostovicz
80136f3591
Change datetime.now() to dt_util.now() ( #26582 )
...
* Change datetime.now() to dt_util.now() in cases where the functionality should stay the same
These changes should not affect the functionality, rather cleanup our codebase.
In general we would like integrations to not to use datetime.now() unless there's a very good
reason for it, rather use our own dt_util.now() which makes the code aware of our current time
zone.
* Use datetime.utcnow() for season sensor to get offset-naive utc time
* Revert "Use datetime.utcnow() for season sensor to get offset-naive utc time"
This reverts commit 5f36463d9c7d52f8e11ffcec7e57dfbc7b21bdd1.
* BOM sensor last_updated should be UTC as well
* Run black
* Remove unused last_partition_update variable
2019-09-19 08:39:09 +02:00
HomeAssistant Azure
a390cf7c6a
[ci skip] Translation update
2019-09-18 00:32:12 +00:00
Steven Looman
4390ccfd4d
Update to async_upnp_client==0.14.11 ( #26515 )
2019-09-08 16:02:31 +02:00
HomeAssistant Azure
0b1f389c76
[ci skip] Translation update
2019-09-07 00:32:45 +00:00
HomeAssistant Azure
1bd22a129b
[ci skip] Translation update
2019-09-05 00:32:29 +00:00
Franck Nijhof
ef0e9431b6
Use literal string interpolation in integrations T-W (f-strings) ( #26394 )
2019-09-03 21:12:51 +02:00
Paulus Schoutsen
e69953fe2d
Update translations
2019-08-28 12:45:48 -07:00
Paulus Schoutsen
87119472a3
Update translations
2019-08-11 20:42:50 -07:00
Quentame
ec2ce31204
Fix script/translations_develop launch + clean some unused error i18n ( #25459 )
...
* Fix : script/translations_develop launch + clean some unused error i18n
* Respecting strings.json order property
title
step
error
abort
* Review from @fredrike : remove Telldus Live all_configured
2019-08-11 20:40:18 -07:00
Paulus Schoutsen
37d78af42c
Add translations
2019-07-31 16:16:40 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Steven Looman
f189367c02
Upgrade to async_upnp_client==0.14.10 and increase search timeout ( #24685 )
2019-06-22 09:12:27 +02:00
Paulus Schoutsen
92816b57ef
Update translations
2019-06-14 14:53:13 -07:00
Paulus Schoutsen
1e22c8daca
Automatically generate config flow list ( #23802 )
...
* Add config flow to manifest.json
* Still load config flows via config flow platform
* Fix typo
* Lint
* Update config_flows.py"
* Catch import error when setting up entry
* Lint
* Fix tests
* Fix imports
* Lint
* Fix Unifi tests
* Fix translation test
* Add homekit_controller config flow
2019-05-13 01:16:55 -07:00
Steven Looman
05960fa29c
Sort discovered entries by 'st' to ensure getting the same device each discovery ( #23763 )
2019-05-09 16:17:46 -07:00
Paulus Schoutsen
e51925fc58
Update translations
2019-05-08 20:20:58 -07:00
Steven Looman
6e7a7ba4a0
Fix upnp logger name ( #23724 )
...
* Fix upnp logger name
* Fix more loggers
2019-05-07 15:52:48 -07:00
Steven Looman
e1d1f21a74
Don't create connections between sensors. Fixes #22787 ( #23202 )
2019-04-18 13:47:17 -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
Paulus Schoutsen
e9d9861bda
Update translations
2019-04-10 15:01:32 -07:00
Paulus Schoutsen
0d2646ba25
Update translations
2019-04-09 08:34:20 -07:00
Paulus Schoutsen
cfe4cf30ad
Add manifests ( #22699 )
...
* Add manifests
* Update auto name
* Update codeowners
* Add requirements from platforms
* Minor cleanup
* Incorporate changes from awarecan PR
2019-04-03 21:14:45 -07:00
Tobias Sauerwein
048b100eea
Clean up docstrings ( #22679 )
...
* Clean up docstrings
* Fix long lines
* Fix more docstrings
* Fix more docstrings
* Fix more docstrings
2019-04-03 17:40:03 +02:00
Steven Looman
613c356c5f
Upgrade to async_upnp_client==0.14.7 ( #22543 )
2019-03-29 13:41:50 -07:00
Paulus Schoutsen
9d21afa444
Update translations
2019-03-27 21:32:58 -07:00
Jason Hu
7519e8d417
Update translate, fix dev build error ( #22419 )
2019-03-26 07:48:26 -07:00
Steven Looman
d1f75fcf32
Properly connect sensors to hub ( #21414 )
...
* Properly connect sensors to hub
Refs #20958
* Don't connect (merge) with main device
* Provide manufacturer
* Linting
* Do connect upnp-sensors to main device
* Linting
* Fix requirements_all.txt
2019-03-24 17:46:15 -07:00
Paulus Schoutsen
72bb94de96
Update translations
2019-03-21 12:57:20 -07:00
Steven Looman
77635d40e2
Upgrade to async_upnp_client==0.14.6 ( #22223 )
...
Upgrade to async_upnp_client to 0.14.6
2019-03-21 08:58:04 +01:00
Paulus Schoutsen
4b1de61110
Use relative imports inside integrations ( #22235 )
...
* Use relative imports inside integrations
* Lint
* Fix automation tests
* Fix scene imports
2019-03-20 22:56:46 -07:00
Paulus Schoutsen
5fbe2d5477
Update translations
2019-03-09 21:26:26 -08:00
Steven Looman
3ffff887d8
Adds option in UPnP component to override callback url ( #21583 )
...
* Add option to override callback url
* Upgrade to async_upnp_client==0.14.5
* Fix requirements_all.txt
2019-03-05 15:48:44 +00:00
Paulus Schoutsen
78217fa9b0
Update translations
2019-02-27 16:34:13 -08:00
Paulus Schoutsen
3fcbc36abe
Update translations
2019-02-21 16:40:25 -08:00
Paulus Schoutsen
02f207ea8e
Update translations
2019-02-13 15:44:18 -08: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
Steven Looman
e0d534c3fb
Upgrade to async_upnp_client==0.14.4 ( #20751 )
2019-02-05 00:36:25 +00:00
Paulus Schoutsen
c2eec16721
Update translations
2019-02-02 14:12:23 -08:00
Paulus Schoutsen
ec57db78b5
Consolidate config flow components ( #20635 )
...
* Consolidate config flow components
* Fix tests
* Fix tests
* Put unifi back
* Fix reqs
* Update coveragerc
2019-02-01 15:45:44 -08:00
Steven Looman
2aab646be2
Upgrade to async-upnp-client==0.14.3 ( #20502 )
2019-01-27 13:52:51 +01:00
Victor Vostrikov
fb52f66da0
Use local IP to discover IGD device ( #20035 )
...
* Use local_ip from config to discover IGD device
In case of multi-homed server UPNP discovery finds IGD device on some "default" interface. WIth this modification discovery will be performed from 'local_ip'.
* Update device.py
* Changed version of async_upnp_client in requirements
* Used aysnc_upnp_client==0.14.0
* Changed requirement to async_upnp_client==0.14.0.dev0
* Changed requirement to async_upnp_client==0.14.0.dev0
* Changed requirement to async_upnp_client==0.14.0.dev0
* Fixed code style
* Fixed code style
* Changed version of async_upnp_client in requerements
* Changed version of async_upnp_client in requirements
* Regenerated requirements (new async_upnp_client)
* Regenerated requirements (new async_upnp_client)
* Changed requirement to async_upnp_client=0.14.1
* Changed requirement to async_upnp_client=0.14.1
* Updated requirements
* Updated requirements.txt
* Corrected requirements
* Corrected import of DeviceState
* Constants changed according new async_upnp_client
* Upgraded for async_upnp_client==0.14.2
2019-01-19 17:08:53 +00:00
Paulus Schoutsen
96b8c517f0
Update translations
2019-01-13 09:38:22 -08:00
Paulus Schoutsen
9aed40a88d
Update translations
2019-01-09 15:29:31 -08:00
Steven Looman
cc6e70a270
Fix error when trying to log used UPnP device, if multiple found ( #19875 )
2019-01-08 21:05:36 +00:00
Steven Looman
2ba86310f0
Upgrade to async_upnp_client==0.13.8 ( #19634 )
2018-12-29 14:09:29 +00:00
Steven Looman
501b3f9927
Disable creating port mappings from UI, add discovery from component ( #18565 )
...
* Disable creating port mappings from UI, add discovery from component
* Remove unused constant
* Upgrade to async_upnp_client==0.13.6 and use manufacturer from device
* Upgrade to async_upnp_client==0.13.7
2018-12-21 17:25:23 +00:00
Paulus Schoutsen
fe2d24c240
Update translations
2018-12-10 09:54:12 +01:00
Paulus Schoutsen
83311df933
Add translations
2018-12-06 00:30:33 +01:00
Paulus Schoutsen
49121f2347
Update translations
2018-11-21 20:18:56 +01:00
Paulus Schoutsen
75bb78d440
Update translations
2018-11-15 14:30:37 +01:00
Steven Looman
9c92151ad1
Upgrade async_upnp_client to 0.13.2 ( #18377 )
2018-11-11 15:10:03 +00:00
Steven Looman
d93716bd84
Add SUPPORT_SEEK for DLNA DMR devices + now (better) providing media_image_url for DLNA DMR devices ( #18157 )
...
* Upgrade to async_upnp_client==0.13.2, now (better) providing media_image_url for DLNA DMR devices
* Add SUPPORT_SEEK for DLNA DMR devices
2018-11-07 13:48:51 +01:00
Paulus Schoutsen
00c1b40940
Add translations
2018-11-07 10:45:29 +01:00
Paulus Schoutsen
e8e135fd25
Update translations
2018-11-03 13:47:36 +01:00
Rick van Hattem
82edea6077
Removed assumptions about provided upnp data ( #17604 )
...
* Removed assumptions about incomplete UPnP devices
* Removed assumptions about incomplete UPnP devices
2018-11-01 22:59:42 +01:00
Steven Looman
96c5e4c507
Fixes for upnp-component/#17753 and missing hass-data when only setup from config entry ( #17868 )
...
* Upgrade to async_upnp_client==0.13.0, fixing #17753
* Fix missing 'local_ip' when upnp-component itself is not setup, but ConfigEntry is
2018-10-29 08:10:01 +01:00
Paulus Schoutsen
c00da509a1
Update translations
2018-10-26 10:18:10 +02:00
Steven Looman
fc8af22191
IGD review fixes ( #17400 )
...
* Fix discovery-dependency for upnp
* Only delete port mappings on EVENT_HOMEASSISTANT_STOP + refactoring MockDevice
* Call and store local_ip from async_setup
* Don't depend on http-component
* Remove discovery dependency
2018-10-23 21:52:01 +02:00
Paulus Schoutsen
398ea40189
Update translations
2018-10-23 14:04:25 +02:00
Paulus Schoutsen
355005114b
Update translations
2018-10-21 20:34:28 +02:00
Steven Looman
f7bc44955c
Upgrade async_upnp_client to 0.12.7 ( #17601 )
2018-10-19 18:10:04 +02:00
Jorim Tielemans
b50c93ccb7
Validate ports as a port ( #17549 )
...
* Validate ports as port
Better than just a positive integer since it limits the range from 1 to 65535.
* Validate port for Axis
* Validate port for Xiaomi Home Camera
* Validate port for Modbus
* Validate port for Yamaha MusicCast Receivers
* Update zhong_hong.py
Validate port as a port, the gateway address as positive_int
Also moved the default values to their variable
* Validate port for the Asterisk Voicemail interface
* Fix lint
* Validate port for Xiaomi Cameras
2018-10-17 23:09:05 +02:00
Steven Looman
7106d9e9d4
Upgrade async_upnp_client to 0.12.6 ( #17560 )
2018-10-17 22:56:21 +02:00
Paulus Schoutsen
a5b9f5040f
Update translations
2018-10-17 14:12:41 +02:00
Steven Looman
e6d002c377
Update to async-upnp-client==0.12.5 ( #17401 )
2018-10-13 14:29:12 +02:00
Paulus Schoutsen
6971e84ddf
Update translations
2018-10-12 14:58:09 +02:00
Paulus Schoutsen
d16e6c8524
Update translations
2018-10-10 14:25:21 +02:00
Steven Looman
4455a287fc
Add defaults, fixing #17229 ( #17261 )
2018-10-09 10:07:30 +02:00
Paulus Schoutsen
2de1193fd9
Update translations
2018-10-07 23:26:46 +02:00
Paulus Schoutsen
0c770520ed
Update translations
2018-10-05 17:50:00 +02:00
Jason Hu
b61a250321
Fix upnp component l10n error ( #17132 )
2018-10-04 15:50:42 +02:00
Steven Looman
5d693277f0
Fix stale docstrings
2018-10-03 11:27:38 +02:00
Steven Looman
3cb20c7b4d
Changes after review by @MartinHjelmare
2018-10-03 11:08:32 +02:00