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 authored and Pascal Vizeli committed 2017-03-07 23:20:27 +01:00
1 parent d16bc632da
commit 3508f74fb2
2 files changed
-13

No files matched your search

-4
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'