Allow passing None as input_text config (#26409)

This commit is contained in:
Paulus Schoutsen authored and Andrew Sayre committed 2019-09-03 20:55:58 -05:00
1 parent b968b53e38
commit 53720c5c48
2 files changed
+28 -14

No files matched your search

+9
View File
@@ -186,3 +186,12 @@ async def test_input_text_context(hass, hass_admin_user):
assert state2 is not None
assert state.state != state2.state
assert state2.context.user_id == hass_admin_user.id
async def test_config_none(hass):
"""Set up input_text without any config."""
await async_setup_component(hass, DOMAIN, {DOMAIN: {"b1": None}})
state = hass.states.get("input_text.b1")
assert state
assert str(state.state) == "unknown"