Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions plugins/sinks/ha_mqtt/ha_mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import time
import logging
import ha_mqtt_discoverable
from ha_mqtt_discoverable import Settings
from ha_mqtt_discoverable.sensors import SensorInfo, Sensor, DeviceInfo
from ha_mqtt_discoverable import Settings, DeviceInfo
from ha_mqtt_discoverable.sensors import SensorInfo, Sensor
from utils.smasensors import get_sensor_dict
from utils.smahelpers import status_string
from typing import Dict, Any, Optional, List
Expand Down Expand Up @@ -136,7 +136,8 @@ def get_sensor(name: str, device_info: DeviceInfo) -> Optional[Sensor]:
device_class=result.get('device_class'),
state_class=result.get('state_class'),
entity_category=result.get('entity_category'),
suggested_display_precision=result.get('suggested_display_precision'),
suggested_display_precision=result.get(
'suggested_display_precision'),
icon=result.get('icon'),
device=device_info)
# mqtt_settings is guarded above, so cast is safe for the type checker
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]

[project]
name = "smahub"
version = "1.7.5"
version = "1.7.6"
authors = [{ name = "Daniel Krippner", email = "dk.mailbox@gmx.net" }]
description = "Little daemon that runs plugins for collecting data from SMA PV products, and publishes to eg MQTT via other plugins."
readme = "README.md"
Expand All @@ -18,7 +18,7 @@ classifiers = [
]
dependencies = [
"debugpy ~=1.8",
"ha_mqtt_discoverable ~=0.16",
"ha_mqtt_discoverable ~=0.24",
"paho-mqtt ~=2.1",
"requests ~=2.32",
"urllib3 ~=2.2",
Expand Down
Loading