Commit Graph

127 Commits (441e99b4393630813c04556919e53c4c600adfe4)

Author SHA1 Message Date
GitHub Action f8ebc31576 [ci skip] Translation update 2021-09-05 00:11:36 +00:00
Michael 0dc8fb497b
Delay state update after switch is toggled for TP-Link HS210 device ()
* delay state update for HS210

* Update workaround comment
2021-09-04 03:01:48 +02:00
Marc Mueller 7461af68b9
Use NamedTuple for color temperature range () 2021-09-03 17:41:32 +02:00
GitHub Action 65d14909ee [ci skip] Translation update 2021-08-27 00:14:42 +00:00
Erik Montnemery 2fa07777cd
Warn if unit_of_measurement is set on instances of SensorEntityDescription ()
* Add class BaseEntityDescription without unit_of_measurement

* Refactor according to review comments

* Tweak

* Fix offending integrations

* Fix offending integrations
2021-08-20 15:54:57 +02:00
Teemu R 3bc45eacfc
Fix tplink doing I/O in event loop and optimize ()
* Optimize tplink i/o

* Cache has_emeter reduceing the number of i/o requests on hs300 by 5
* Use the state from the sysinfo dict for non-strips reducing required requests by one

* Remove I/O from __init__, read has_emeter from sysinfo

* Cleanup __init__ to avoid I/O
* Re-use the sysinfo response for has_emeter
* Use async_add_executor_job() to execute the synchronous I/O ops.

* use the device alias instead of host for coordinator, use executor for unavailable_devices

* Remove unnecessary self.hass assignment

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-18 01:29:40 +02:00
Michael 684d035969
Use state class total increasing for TPLink smart plugs () 2021-08-16 23:54:11 +02:00
Erik Montnemery 87e7a8fb5f
Move temperature conversions to sensor base class - new integrations ()
* Move temperature conversions to sensor base class

* Tweaks

* Update pvpc_hourly_pricing

* Fix flipr sensor

* Fix ezviz and youless sensor
2021-08-15 08:51:43 +02:00
Michael b2725918b1
Fix TP-Link smart strip devices () 2021-08-02 09:47:54 -07:00
GitHub Action 8c5620e74b [ci skip] Translation update 2021-08-02 03:40:04 +00:00
Michael da1a9bcbf0
Do not block setup of TP-Link when device unreachable () 2021-08-01 14:58:55 -07:00
Michael 692665e46c
Apply left suggestions for TP-Link () 2021-07-29 22:11:15 -07:00
Michael 45e4f80cfe
Fix exception handling in DataUpdateCoordinator in TP-Link ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-07-29 21:18:09 -07:00
Michael bedb9550f5
Move TP-Link power and energy switch attributes to sensors ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-07-29 11:02:47 -07:00
GitHub Action ecf0d4398d [ci skip] Translation update 2021-07-22 00:10:31 +00:00
Marc Mueller f6b162bc39
Add pylint CodeStyle extension () 2021-07-19 06:57:06 -07:00
GitHub Action 531733da7b [ci skip] Translation update 2021-07-19 00:09:50 +00:00
Teemu R 6afa4d6914
Skip updating tplink bulb state if the new state not reported by the device () 2021-06-29 19:14:34 +02:00
Appleguru 8d8af60b1d
Add retries for tplink discovery ()
* Add retries for tplink discovery

* Black Format tplink common.py

* Exit tplink discovery early if all devices found

* Fix typo in tplink retry log msg

* Code style cleanup for tplink retries

* Update homeassistant/components/tplink/common.py

Co-authored-by: Teemu R. <tpr@iki.fi>

* Fix linting errors for tplink retries

Co-authored-by: Teemu R. <tpr@iki.fi>
2021-06-25 23:49:35 +02:00
tkdrob c0656878db
Normalize async_setup_entry () 2021-05-27 15:56:20 +02:00
Franck Nijhof 560dd0a0cc
Typing improvements for TPLink ()
* Typing improvements for TPLink

* Update homeassistant/components/tplink/common.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-05-22 13:47:26 +01:00
Michael 9eecd90afc
Add constructor return type in integrations T-Z () 2021-05-20 17:00:19 +02:00
J. Nick Koston a74aa9272c
Add dhcp discovery to tplink () 2021-05-09 10:03:41 -05:00
gabrialdestruir f814a7a8ae
Add tplink light setting ignore default ()
This fixes issue  by allowing color, brightness, and temperature to be set from an off state. This adds code to allow "ignore_default=1" to be sent to bulb letting it know to power on with the parameters set.
2021-05-09 16:27:49 +02:00
J. Nick Koston 4853fb7966
Fix tplink unloading when no switches are present () 2021-05-08 19:20:22 +02:00
Franck Nijhof c68b259bd3
Cleanup of unused connection_class logic ()
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-04-29 23:12:58 +02:00
J. Nick Koston 4b74c57285
Reduce config entry setup/unload boilerplate T-U () 2021-04-27 22:19:57 +02:00
Bram Kragten b00ccf98f0
TP Link: Don't report HS when in CT mode ()
* TP Link: Don't report HS when in CT mode

* Update tests
2021-04-27 11:19:21 +02:00
jan iversen 6992e24263
Rename HomeAssistantType —> HomeAssistant, integrations t* - v* ()
* Integration vizio: HomeAssistantType -> HomeAssistant.

* Integration velbus: HomeAssistantType -> HomeAssistant.

* Integration vacuum: HomeAssistantType -> HomeAssistant.

* Integration upnp: HomeAssistantType -> HomeAssistant.

* Integration upcloud: HomeAssistantType -> HomeAssistant.

* Integration twinkly: HomeAssistantType -> HomeAssistant.

* Integration tts: HomeAssistantType -> HomeAssistant.

* Integration tradfri: HomeAssistantType -> HomeAssistant.

* Integration traccar: HomeAssistantType -> HomeAssistant.

* Integration tplink: HomeAssistantType -> HomeAssistant.
2021-04-22 10:53:57 -04:00
Franck Nijhof 055cdc64c0
Add support for IoT class in manifest () 2021-04-15 10:21:38 +02:00
Philip Allgaier f1c4072d3c
Return TP-Link sensor & light attributes as `float` rather than `string` () 2021-04-08 16:51:59 +02:00
Mario Limonciello 9fd6980144
Avoid divide by zero errors in tplink light integration () 2021-03-31 17:16:24 +02:00
Franck Nijhof 8d5ce53098
Merge of nested IF-IF cases - S-W () 2021-03-27 10:54:59 +01:00
Franck Nijhof 6932cf9534
Use contextlib.suppress where possible () 2021-03-23 14:36:43 +01:00
Marc Mueller b67b9b94f9
Update typing 13 () 2021-03-18 14:43:52 +01:00
HomeAssistant Azure c11b85af2f [ci skip] Translation update 2021-03-16 00:04:36 +00:00
Erik Montnemery 1fc8e32d86
Update integrations t-z to override extra_state_attributes() () 2021-03-11 20:16:26 +01:00
HomeAssistant Azure 0cb1f61deb [ci skip] Translation update 2021-02-21 00:07:04 +00:00
Paulus Schoutsen 959ed6d077 Update translations 2021-02-03 11:46:49 +01:00
HomeAssistant Azure 42f00cff30 [ci skip] Translation update 2020-12-04 00:05:42 +00:00
Teemu R 183154c017
Bump pyhs100 dependency to fix hs220 discoverability issues ()
Fixes 
2020-11-25 08:21:48 +01:00
HomeAssistant Azure aab0ff2ea5 [ci skip] Translation update 2020-11-03 00:04:39 +00:00
Angelo Gagliano d42bdcfc2a
Move async_add_entities back to event loop for tplink component () 2020-10-28 09:51:53 +01:00
Angelo Gagliano 34283ac283
Add retry for unavailable static tplink devices after HA starts () 2020-10-27 10:02:16 +01:00
HomeAssistant Azure ed232ac733 [ci skip] Translation update 2020-10-24 00:05:17 +00:00
HomeAssistant Azure 994ae09f69 [ci skip] Translation update 2020-10-15 00:03:50 +00:00
HomeAssistant Azure ba55cb8955 [ci skip] Translation update 2020-10-14 00:04:41 +00:00
HomeAssistant Azure f787289ea0 [ci skip] Translation update 2020-10-12 00:03:31 +00:00
Angelo Gagliano 874e1f6103
Prevent tplink missing devices and unavailable state ()
* Adds self to codeowners for tplink

* Adds retry to update to prevent missing devices

* Runs through isort and corrects async commit

* Runs through black

* Runs through pre-checks

* Corrects and matches var names

* Re-runs through black

* Corrects var name

* Removes the retry loop and in favor of async add

* Cleanup imports

* Removes no longer valid test

* Removes is_ready and only log retry once

* Corrects switch logging vars

* Adds list of entities to add_entities

* Consumes exception for attempt_update

* Consumes specific exception

* Removes unnecessary update

* Reducing back to 2 seconds

* Removes useless return

* Call get_sysinfo for all at once

* Formated black

* Adds missing docstirng

* Corrects docstring

* Update homeassistant/components/tplink/light.py

Co-authored-by: Anders Melchiorsen <amelchio@nogoto.net>

* Corrects sysinfo call

* Adds default for host vars

* Adds log when device responds again

* Revert host alias default

* Removes unncessary host var

* Removes host var

* Get device details from sysinfo

* Use host and alias for log msg

* Gets hosts from smartbulb

* Changes retry logging to debug

* Attempts coverage add

* Removes unused import

* Updates tests for new retry

* Runs through isort

* Removes unneeded try

* Prevents static entries from failing integration

* Format black

* Forces an update after turn on off

* Remove common test

* Revert update after turn_on off

* Adds patch for sleep_time 0

* Returns False when update fails

Co-authored-by: Anders Melchiorsen <amelchio@nogoto.net>
2020-10-11 21:10:36 +02:00
HomeAssistant Azure 80522f1bdc [ci skip] Translation update 2020-10-11 00:03:37 +00:00