Bump mypy to 0.940 (#68007)
This commit is contained in:
parent
380f04277e
commit
41df798375
9 changed files with 9 additions and 9 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue