Skip to content

Commit

Permalink
3.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
magnuselden authored and magnuselden committed Feb 10, 2024
1 parent b117fbc commit a444634
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/peaqev/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
"requirements": [
"peaqevcore==19.5.20"
],
"version": "3.3.2"
"version": "3.3.3"
}
4 changes: 4 additions & 0 deletions custom_components/peaqev/sensors/utility_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

from custom_components.peaqev.const import DOMAIN
from custom_components.peaqev.peaqservice.util.extensionmethods import nametoid
import logging

_LOGGER = logging.getLogger(__name__)

class Object:
pass
Expand Down Expand Up @@ -43,6 +45,7 @@ async def async_create_single_utility(hub: HomeAssistantHub, sensor: any, meter_
"meter_type": meter_type.value,
"meter_offset": METER_OFFSET,
"net_consumption": True,
"sensor_always_available": True,
"tariff": None,
"tariff_entity": None,
"periodically_resetting": False,
Expand All @@ -59,6 +62,7 @@ async def async_create_single_utility(hub: HomeAssistantHub, sensor: any, meter_
params["cron_pattern"] = None

utility_meter = PeaqUtilitySensor(**params)
_LOGGER.debug(f"Creating utility meter {name} with entity_id {this_sensor}. Result {utility_meter}")
utility_meter.entity_id = this_sensor
return utility_meter

Expand Down

0 comments on commit a444634

Please sign in to comment.