From e62d8df7daa680a77000fb2a79672eab66b41986 Mon Sep 17 00:00:00 2001 From: David Simon Date: Mon, 4 Sep 2023 16:53:50 -0400 Subject: [PATCH] Lint fixes Signed-off-by: David Simon --- ha_mqtt_discoverable/sensors.py | 4 +--- tests/test_number.py | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/ha_mqtt_discoverable/sensors.py b/ha_mqtt_discoverable/sensors.py index 9fab12b..ba20cfa 100644 --- a/ha_mqtt_discoverable/sensors.py +++ b/ha_mqtt_discoverable/sensors.py @@ -122,13 +122,11 @@ class NumberInfo(EntityInfo): """The MQTT topic subscribed to receive state updates.""" step: Optional[float] = None """Step value. Smallest acceptable value is 0.001. Defaults to 1.0.""" - unit_of_measurement: Optional[string] = None + unit_of_measurement: Optional[str] = None """Defines the unit of measurement of the sensor, if any. The unit_of_measurement can be null.""" - - class DeviceTriggerInfo(EntityInfo): """Information about the device trigger""" diff --git a/tests/test_number.py b/tests/test_number.py index 90662a8..c9b30ff 100644 --- a/tests/test_number.py +++ b/tests/test_number.py @@ -1,5 +1,3 @@ -import random -import string import pytest from ha_mqtt_discoverable import Settings from ha_mqtt_discoverable.sensors import Number, NumberInfo