Commit e3d5f9a4 authored by chrysn's avatar chrysn

seen an FGW14

it turned out not to do anything useful (apparently the device's USB
part is broken), but at least we'll recognize it.
parent b79854da
......@@ -440,8 +440,12 @@ class FSG14_1_10V(DimmerStyle):
discovery_name = bytes((0x04, 0x07))
size = 1
class FGW14_USB(BusObject):
discovery_name = (0x04, 0xfe)
size = 1
known_objects = [FAM14, FUD14, FSR14_1x, FSR14_2x, FSR14_4x, F4SR14_LED, F3Z14D, FMZ14, FWG14MS, FSU14, FMSR14, FWZ14_65A, FSG14_1_10V]
known_objects = [FAM14, FUD14, FSR14_1x, FSR14_2x, FSR14_4x, F4SR14_LED, F3Z14D, FMZ14, FWG14MS, FSU14, FMSR14, FWZ14_65A, FSG14_1_10V, FGW14_USB]
# sorted so the first match of (discovery name is a prefix, size matches) can be used
sorted_known_objects = sorted(known_objects, key=lambda o: len(o.discovery_name) + 0.5 * (o.size is not None), reverse=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment