Skip to content

Commit

Permalink
Fix #13
Browse files Browse the repository at this point in the history
  • Loading branch information
Limych committed Mar 5, 2021
1 parent 06964ce commit a99575a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/car_wash/binary_sensor.py
Expand Up @@ -213,7 +213,7 @@ async def async_update(self):
tmax,
)

if prec:
if prec and prec != "null":
_LOGGER.debug("Precipitation detected")
self._state = False
return
Expand Down
1 change: 1 addition & 0 deletions tests/test_binary_sensor.py
Expand Up @@ -138,6 +138,7 @@ async def test_async_update(hass: HomeAssistant, mock_weather):
},
{
ATTR_FORECAST_TIME: today,
ATTR_FORECAST_PRECIPITATION: "null",
},
{
ATTR_FORECAST_TIME: int(today_ts + 3 * days),
Expand Down

0 comments on commit a99575a

Please sign in to comment.