Add an RSSI sensor to the LIFX integration (#80993)
This commit is contained in:
parent
0d4b1866a7
commit
dde763418a
12 changed files with 393 additions and 74 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue