Skip to content

Handle modules supported only by children #825

Closed
@rytilahti

Description

@rytilahti

Decide how to deal with the features that are reported to be supported in the component_nego for the parent, but are actually implemented by a child device (like here for fan level):

== Features ==
        Device ID (device_id): xx
        Signal Level (signal_level): 3
        RSSI (rssi): -41
        SSID (ssid): xx
        Brightness (brightness): 'brightness'
        Cloud connection (cloud_connection): True
        Fan speed level (fan_speed_level): 'fan_speed_level'
        Fan sleep mode (fan_sleep_mode): 'fan_sleep_mode_on'
        Auto update enabled (auto_update_enabled): False
        Update available (update_available): True
        LED (led): False
        Smooth transition on (smooth_transition_on): argument of type 'SmartErrorCode' is not iterable
        Smooth transition off (smooth_transition_off): argument of type 'SmartErrorCode' is not iterable
        Time (time): You need to call update() prior accessing module data for 'time'
== Child Ceiling Fan ==
        Device ID (device_id): xx
        State (state): False
        Cloud connection (cloud_connection): True
        Fan speed level (fan_speed_level): 1
        Fan sleep mode (fan_sleep_mode): False
        Auto update enabled (auto_update_enabled): False
        Update available (update_available): True
        Time (time): You need to call update() prior accessing module data for 'time'
== Child Dimmer Switch ==
        Device ID (device_id): xx
        State (state): False
        On since (on_since): None
        Brightness (brightness): 100
        Cloud connection (cloud_connection): True
        Auto update enabled (auto_update_enabled): False
        Update available (update_available): True
        Smooth transition on (smooth_transition_on): argument of type 'SmartErrorCode' is not iterable
        Smooth transition off (smooth_transition_off): argument of type 'SmartErrorCode' is not iterable
        Time (time): You need to call update() prior accessing module data for 'time'

_Originally posted by @rytilahti in https://github.com/python-kasa/python-kasa/issues/764#issuecomment-2000091488_
            

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions