Commit Graph

36761 Commits (d009f06a55ae1e8761ae6522ac67b9806ac79a1b)

Author SHA1 Message Date
J. Nick Koston d009f06a55
Handle connection being closed in legacy samsungtv (#52137)
* Handle connection being closed in legacy samsungtv

- Mirror the websocket behavior

Fixes
```
2021-06-24 02:54:13 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.89_guestroom fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 401, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 609, in async_device_update
    raise exc
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/samsungtv/media_player.py", line 124, in update
    self._state = STATE_ON if self._bridge.is_on() else STATE_OFF
  File "/usr/src/homeassistant/homeassistant/components/samsungtv/bridge.py", line 113, in is_on
    return self._get_remote() is not None
  File "/usr/src/homeassistant/homeassistant/components/samsungtv/bridge.py", line 232, in _get_remote
    self._remote = Remote(self.config.copy())
  File "/usr/local/lib/python3.8/site-packages/samsungctl/remote.py", line 9, in __init__
    self.remote = RemoteLegacy(config)
  File "/usr/local/lib/python3.8/site-packages/samsungctl/remote_legacy.py", line 32, in __init__
    self._read_response(True)
  File "/usr/local/lib/python3.8/site-packages/samsungctl/remote_legacy.py", line 77, in _read_response
    raise exceptions.ConnectionClosed()
samsungctl.exceptions.ConnectionClosed
```

* add coverage

* pass instead
2021-06-25 07:31:44 +02:00
GitHub Action febc276db9 [ci skip] Translation update 2021-06-25 00:12:31 +00:00
Franck Nijhof f9d65b9196
Add preset support to WLED (#52170) 2021-06-24 23:16:07 +02:00
Maciej Bieniek 0730b375f3
Remove `air_quality` platform from Nettigo Air Monitor integration (#52152)
* Remove air_quality platform

* Clean constants
2021-06-24 22:58:37 +03:00
Daniel Hjelseth Høyer a5ca25019c
Toon, correct generate a 0-timestamp (#52167)
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-06-24 21:48:09 +02:00
Santobert adade590ed
Bump pybotvac to 0.0.21 (#52166) 2021-06-24 21:29:09 +02:00
Daniel Hjelseth Høyer e039a9d37b
Tibber, correct generate a 0-timestamp (#52165)
* Tibber, correct generate a 0-timestamp

* import

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-06-24 21:18:46 +02:00
Franck Nijhof a2be9a487f
DSMR: Complete full strictly typed (#52162) 2021-06-24 11:27:25 -07:00
Franck Nijhof fba7118d44
Add Color Palette Select entities to WLED (#51994)
* Add Color Palette Select entities to WLED

* Update with dev changes, disable by default
2021-06-24 11:25:21 -07:00
J. Nick Koston 5695710463
Add mac address to samsungtv config entry data if missing (#51634)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-06-24 08:15:16 -10:00
Franck Nijhof 34a317b847
DSMR: Device/state classes, icons, less common disabled by default (#52159) 2021-06-24 18:48:51 +02:00
Erik Montnemery 4533a77597
Add MQTT select (#52120)
* Add MQTT select

* Fix value_template support

* Lint
2021-06-24 17:09:06 +02:00
starkillerOG 69a04cf748
Fix Xiaomi Miio missing gateway info (#52146)
During my last PR: https://github.com/home-assistant/core/pull/47955, I accedently created a bug that will block the setup of the gateway integration.
This fixes that bug.
2021-06-24 17:03:19 +02:00
Simone Chemelli 3b8ece38b3
Second part of Strict types for Fritz (#52086)
Co-authored-by: Shay Levy <levyshay1@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-06-24 17:02:41 +02:00
Franck Nijhof 75c3daa45f
DSMR: Refactor sensor creation, added typing to sensors (#52153)
* DSMR: Refactor sensor creation, added typing to sensors

* Log from package level

* Apply suggestions from code review

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

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-06-24 16:56:43 +02:00
Erik Montnemery 04c9665241
Filter MQTT JSON attributes (#52076)
* Filter JSON attributes

* Apply suggestions from code review

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Refactor, add tests

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-06-24 16:22:54 +02:00
Martin Hjelmare 09b3882a5b
Type frontend strictly (#52148) 2021-06-24 16:01:28 +02:00
Franck Nijhof afa00b7626
DSMR: Remove Gas derivative sensor (#52147) 2021-06-24 14:25:38 +02:00
Martin Hjelmare 0e5040d917
Add zwave_js options flow to reconfigure server (#51840) 2021-06-24 13:15:42 +02:00
Franck Nijhof fbdd6a9d95
DSMR: Typing cleanup in init & config flow (#52145) 2021-06-24 12:53:16 +02:00
Franck Nijhof 17357bf575
DSMR: Small cleanup; use entity class attributes (#52143) 2021-06-24 11:25:19 +02:00
Eduard van Valkenburg e21325b975
Fix missing azure event hub instance name (#52049) 2021-06-24 11:24:38 +02:00
Franck Nijhof 780d538bb0
DSMR: Adding myself to the codeowners (#52144) 2021-06-24 11:23:20 +02:00
Maciej Bieniek ff8b96c65d
Remove YAML configuration import from Sony Bravia TV (#52141) 2021-06-24 11:10:21 +02:00
Matthias Alphart 74db49fae4
Add KNX select entity (#52026)
* select entity for knx

* validate select options

* lint

* phytonify

* Tweak

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-06-24 10:54:04 +02:00
Rob Bierbooms aa56a21b45
Add config flow step user to dsmr (#50318)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-06-24 10:16:08 +02:00
dependabot[bot] 0714ee68eb
Bump docker/login-action from 1.9.0 to 1.10.0 (#52140)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-24 09:52:17 +02:00
Franck Nijhof a67ca08124
Change dynamic segment handling of WLED (#52018) 2021-06-23 23:43:24 +02:00
Paulus Schoutsen cc00617cd5
Allow defining state class for template sensors (#52130) 2021-06-23 14:37:04 -07:00
Robert Svensson 6352d8fb0e
Use more attr instead of properties in deCONZ integration (#52098) 2021-06-23 21:40:34 +02:00
jan iversen 1f4fdb50dc
Share struct validator between sensor and climate (#51935) 2021-06-23 11:03:17 -07:00
Franck Nijhof 5b663b1fb9
Add state class to Enphase Envoy (#52113) 2021-06-23 10:46:00 -07:00
Franck Nijhof 38daf94562
Add state class to Eliqonline (#52111) 2021-06-23 10:44:55 -07:00
Franck Nijhof 7f7c0febd8
Add state class to DTE Energy Bridge (#52110) 2021-06-23 10:44:41 -07:00
Franck Nijhof 927b74b4a2
Add state class to The Energy Detective TED5000 (#52109) 2021-06-23 10:44:25 -07:00
Franck Nijhof 0ddd858b4b
Add state class to Aurora ABB Solar PV (#52108) 2021-06-23 10:43:57 -07:00
Franck Nijhof b9e6a6b3b8
Add state class to JuiceNet (#52116) 2021-06-23 10:43:31 -07:00
Franck Nijhof 39b090d957
Add state class to Neurio energy (#52117) 2021-06-23 10:41:48 -07:00
Franck Nijhof 3bfcca2bb0
Add state class to Atome Linky, use class attributes (#52107) 2021-06-23 10:23:56 -07:00
Martin Hjelmare ed4a3d275a
Fix ezviz options flow test patch (#52125) 2021-06-23 18:19:45 +02:00
Matthias Alphart 742159a6a6
Add number entity to KNX (#51786)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-06-23 17:20:49 +02:00
Chris Talkington 4e88b44286
Use attrs instead of properties for directv (#51918)
* Use attrs instead of properties for directv

* Update __init__.py

* Create entity.py

* Update media_player.py

* Update remote.py

* Update media_player.py

* Update remote.py

* Update media_player.py

* Update remote.py

* Update entity.py

* Update __init__.py

* Update media_player.py

* Update remote.py

* Update media_player.py

* Update media_player.py
2021-06-23 16:10:29 +02:00
Erik Montnemery 2351f2d95e
Warn when receiving message on illegal MQTT discovery topic (#52106)
* Warn when receiving message on illegal MQTT discovery topic

* Fix test
2021-06-23 15:53:17 +02:00
Tobias Sauerwein db5bf8ab23
Bump pyatmo version (#52112)
* Bump pyatmo version

* Update tests
2021-06-23 15:51:27 +02:00
Maciej Bieniek 75faee4f25
Use attrs instead of properties in Bravia TV integration (#52045)
* Use attrs instead of properties

* Revert to using properties for dynamic data

* Move volume_level to coordinator

* Move media_title to coordinator

* Remove unused variables

* Fix variable name

* Revert removed variables
2021-06-23 15:46:28 +02:00
Erik Montnemery 80ae346318
Pass the hass object to all MQTT component constructors (#52124) 2021-06-23 15:44:18 +02:00
Erik Montnemery 77de233679
Update MQTT number to treat received payload as UTF-8 (#52121)
* Update MQTT number to treat received payload as UTF-8

* Lint
2021-06-23 15:35:18 +02:00
Erik Montnemery a374e24843
Add monetary sensor device class (#52087)
* Add total_cost sensor device class

* Change to DEVICE_CLASS_MONETARY
2021-06-23 15:32:25 +02:00
Tobias Sauerwein 5a4a1a250d
Catch exception for failed webhook drop for netatmo (#52119) 2021-06-23 14:56:20 +02:00
Franck Nijhof b3b23066a8
Add state class to Huisbaasje (#52114) 2021-06-23 13:11:33 +02:00