Improve type hints in zwave_me number entity (#76469)
parent
bb0038319d
commit
9555df88c8
|
@ -40,7 +40,7 @@ class ZWaveMeNumber(ZWaveMeEntity, NumberEntity):
|
||||||
"""Representation of a ZWaveMe Multilevel Switch."""
|
"""Representation of a ZWaveMe Multilevel Switch."""
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def native_value(self):
|
def native_value(self) -> float:
|
||||||
"""Return the unit of measurement."""
|
"""Return the unit of measurement."""
|
||||||
if self.device.level == 99: # Scale max value
|
if self.device.level == 99: # Scale max value
|
||||||
return 100
|
return 100
|
||||||
|
|
Loading…
Reference in New Issue