1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Remove connection status state. (#6475)

Current implementation of connection status doesn't follow convention and is not properly configurable. Might be added again in the future as a full fledged entity or some other way.

For now users can rely on error logging to determine connection status.
This commit is contained in:
Johan Bloemberg
2017-03-07 23:20:27 +01:00
committed by Pascal Vizeli
parent d16bc632da
commit 3508f74fb2
2 changed files with 0 additions and 13 deletions

View File

@@ -205,15 +205,11 @@ def test_error_when_not_connected(hass, monkeypatch):
_, mock_create, _, disconnect_callback = yield from mock_rflink(
hass, config, domain, monkeypatch, failures=failures)
assert hass.states.get('rflink.connection_status').state == 'connected'
# rflink initiated disconnect
disconnect_callback(None)
yield from asyncio.sleep(0, loop=hass.loop)
assert hass.states.get('rflink.connection_status').state == 'error'
success = yield from hass.services.async_call(
domain, SERVICE_TURN_OFF, {ATTR_ENTITY_ID: 'switch.test'})
assert not success, 'changing state should not succeed when disconnected'