From 5a709efe02cdb448c262009c50efe7208738c212 Mon Sep 17 00:00:00 2001 From: Andrew Jackson Date: Tue, 5 Mar 2024 08:50:29 +0000 Subject: [PATCH] Lint issues --- custom_components/battery_notes/__init__.py | 2 +- custom_components/battery_notes/store.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/custom_components/battery_notes/__init__.py b/custom_components/battery_notes/__init__.py index d89eae838..71ba9654c 100644 --- a/custom_components/battery_notes/__init__.py +++ b/custom_components/battery_notes/__init__.py @@ -367,7 +367,7 @@ async def handle_battery_low(call): device: BatteryNotesDevice for device in hass.data[DOMAIN][DATA].devices.values(): - if device.coordinator.battery_low == True: + if device.coordinator.battery_low is True: hass.bus.async_fire( EVENT_BATTERY_THRESHOLD, diff --git a/custom_components/battery_notes/store.py b/custom_components/battery_notes/store.py index 0a0d221ca..57bfcbf72 100644 --- a/custom_components/battery_notes/store.py +++ b/custom_components/battery_notes/store.py @@ -9,7 +9,6 @@ import attr from homeassistant.core import callback, HomeAssistant -from homeassistant.loader import bind_hass from homeassistant.helpers.storage import Store from .const import (