Rewrite of not a == b occurances (#48132)

This commit is contained in:
Franck Nijhof 2021-03-20 01:27:04 +01:00 committed by GitHub
parent 26bceae99d
commit fb849b81b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 31 additions and 31 deletions

View file

@ -197,8 +197,8 @@ class ZWaveListSensor(ZwaveSensorBase):
if self.info.primary_value.value is None:
return None
if (
not str(self.info.primary_value.value)
in self.info.primary_value.metadata.states
str(self.info.primary_value.value)
not in self.info.primary_value.metadata.states
):
return str(self.info.primary_value.value)
return str(