Fix round typing [zwave_js] (#82439)

This commit is contained in:
Marc Mueller 2022-11-21 01:29:55 +01:00 committed by GitHub
parent 3bea04e387
commit d2000f0c7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -129,7 +129,7 @@ class ZWaveCover(ZWaveBaseEntity, CoverEntity):
if self.info.primary_value.value is None:
# guard missing value
return None
return round((self.info.primary_value.value / 99) * 100)
return round((cast(int, self.info.primary_value.value) / 99) * 100)
async def async_set_cover_position(self, **kwargs: Any) -> None:
"""Move the cover to a specific position."""