mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-10 16:44:28 +05:00
- исправлена логика filter_value
This commit is contained in:
@@ -134,6 +134,8 @@ class FilterBadValues(MegaPushEntity, SensorEntity):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
def filter_value(self, value):
|
||||
if value is None:
|
||||
return
|
||||
try:
|
||||
if (
|
||||
value in self.filter_values
|
||||
|
||||
Reference in New Issue
Block a user