Improve type hints in zwave_me number entity (#76469)

pull/76576/head
epenet 2022-08-10 23:49:02 +02:00 committed by GitHub
parent bb0038319d
commit 9555df88c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class ZWaveMeNumber(ZWaveMeEntity, NumberEntity):
"""Representation of a ZWaveMe Multilevel Switch."""
@property
def native_value(self):
def native_value(self) -> float:
"""Return the unit of measurement."""
if self.device.level == 99: # Scale max value
return 100