Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
Signed-off-by: David Simon <[email protected]>
  • Loading branch information
DavidMikeSimon committed Sep 4, 2023
1 parent 7f71d15 commit e62d8df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions ha_mqtt_discoverable/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""

Expand Down
2 changes: 0 additions & 2 deletions tests/test_number.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import random
import string
import pytest
from ha_mqtt_discoverable import Settings
from ha_mqtt_discoverable.sensors import Number, NumberInfo
Expand Down

0 comments on commit e62d8df

Please sign in to comment.