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