Bump mypy to 0.940 (#68007)

This commit is contained in:
Marc Mueller 2022-03-12 00:57:38 +01:00 committed by GitHub
parent 380f04277e
commit 41df798375
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 9 additions and 9 deletions

View file

@ -98,7 +98,7 @@ class CO2Sensor(update_coordinator.CoordinatorEntity[CO2SignalResponse], SensorE
@property
def native_value(self) -> StateType:
"""Return sensor state."""
if (value := self.coordinator.data["data"][self._description.key]) is None: # type: ignore[misc]
if (value := self.coordinator.data["data"][self._description.key]) is None: # type: ignore[literal-required]
return None
return round(value, 2)