Add an RSSI sensor to the LIFX integration (#80993)

This commit is contained in:
Avi Miller 2022-10-27 01:12:45 +11:00 committed by GitHub
parent 0d4b1866a7
commit dde763418a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 393 additions and 74 deletions

View file

@ -91,6 +91,7 @@ def _mocked_bulb() -> Light:
bulb.set_power = MockLifxCommand(bulb)
bulb.set_color = MockLifxCommand(bulb)
bulb.get_hostfirmware = MockLifxCommand(bulb)
bulb.get_wifiinfo = MockLifxCommand(bulb, signal=100)
bulb.get_version = MockLifxCommand(bulb)
bulb.set_waveform_optional = MockLifxCommand(bulb)
bulb.product = 1 # LIFX Original 1000
@ -168,6 +169,12 @@ def _mocked_tile() -> Light:
return bulb
def _mocked_bulb_old_firmware() -> Light:
bulb = _mocked_bulb()
bulb.host_firmware_version = "2.77"
return bulb
def _mocked_bulb_new_firmware() -> Light:
bulb = _mocked_bulb()
bulb.host_firmware_version = "3.90"