Skip to content

Commit

Permalink
fix: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernst79 committed Sep 6, 2022
1 parent b428339 commit ffce92d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bthome_ble/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from home_assistant_bluetooth import BluetoothServiceInfo
from sensor_state_data.description import (
BaseBinarySensorDescription,
BaseSensorDescription
BaseSensorDescription,
)

from .const import HA_BINARY_SENSOR_DEVICE_CLASSES, HA_SENSOR_DEVICE_CLASSES, MEAS_TYPES
Expand Down Expand Up @@ -298,7 +298,8 @@ def _parse_bthome(
native_value=bool(value),
)
elif meas_format.device_class:
# Update binary sensors without a supported HA device class or without a device class
# Update binary sensors without a supported HA device class
# or without a device class
self.update_binary_sensor(
key=meas_format.device_class,
native_value=bool(value),
Expand Down

0 comments on commit ffce92d

Please sign in to comment.