Allow saving zero precision option in Opentherm_gw (#42593)

* Allow saving zero precision option in Opentherm_gw

* Add default 0 back for precision option

* Adjust config flow test for zero precision
This commit is contained in:
springstan authored and GitHub committed 2020-10-31 16:19:17 +01:00
1 parent d67d8e76dd
commit c7fbbbe935
3 files changed
+3 -6

No files matched your search

@@ -206,5 +206,5 @@ async def test_options_form(hass):
)
assert result["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
assert result["data"][CONF_PRECISION] is None
assert result["data"][CONF_PRECISION] == 0.0
assert result["data"][CONF_FLOOR_TEMP] is True