diff --git a/custom_components/ohme/const.py b/custom_components/ohme/const.py index 8f30ab4..f0ddced 100644 --- a/custom_components/ohme/const.py +++ b/custom_components/ohme/const.py @@ -1,7 +1,7 @@ """Component constants""" DOMAIN = "ohme" USER_AGENT = "dan-r-homeassistant-ohme" -INTEGRATION_VERSION = "0.7.0" +INTEGRATION_VERSION = "0.7.1" CONFIG_VERSION = 1 ENTITY_TYPES = ["sensor", "binary_sensor", "switch", "button", "number", "time"] diff --git a/custom_components/ohme/utils.py b/custom_components/ohme/utils.py index 1648727..dc1776d 100644 --- a/custom_components/ohme/utils.py +++ b/custom_components/ohme/utils.py @@ -164,6 +164,7 @@ def charge_graph_in_slot(charge_start, points, skip_format=False): def time_next_occurs(hour, minute): """Find when this time next occurs.""" + current = datetime.now() target = current.replace(hour=hour, minute=minute, second=0, microsecond=0) if target <= datetime.now(): target = target + timedelta(days=1)