Module Expr Str Import alias Import alias ImportFrom alias Import alias identifier ImportFrom alias alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Str Assign NameStore Call NameLoad keyword Num Assign NameStore Call NameLoad keyword Num Assign NameStore Call NameLoad keyword Num Assign NameStore Num Assign NameStore Dict Str Str Str ListLoad Str NameLoad NameLoad ListLoad Str NameLoad NameLoad ListLoad Str NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str ImportFrom alias Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr IfExp CompareEq NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr body Return Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad If CompareGtE BinOpSub Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpAdd BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str SubscriptLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Index Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Return IfExp Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults kwarg body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr IfExp AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list
N/A N/A Support for ThinkingCleaner. N/A time N/A logging datetime timedelta N/A homeassistant.util util homeassistant.const STATE_ON STATE_OFF homeassistant.helpers.entity ToggleEntity N/A _LOGGER N/A N/A logging getLogger __name__ N/A REQUIREMENTS N/A https://github.com/TheRealLink/pythinkingcleaner/archive/v0.0.2.zip#pythinkingcleaner==0.0.2 N/A MIN_TIME_BETWEEN_SCANS N/A timedelta seconds 10 N/A MIN_TIME_BETWEEN_FORCED_SCANS N/A timedelta milliseconds 100 N/A MIN_TIME_TO_WAIT N/A timedelta seconds 5 N/A MIN_TIME_TO_LOCK_UPDATE 5 N/A SWITCH_TYPES N/A clean dock find N/A Clean None None N/A Dock None None N/A Find None None setup_platform N/A N/A hass config add_devices discovery_info N/A None N/A N/A Setup the ThinkingCleaner platform. pythinkingcleaner Discovery N/A discovery N/A Discovery N/A devices N/A N/A discovery discover update_devices N/A N/A N/A N/A N/A Update all devices. N/A device_object devices N/A N/A N/A N/A device_object update N/A N/A N/A util Throttle MIN_TIME_BETWEEN_SCANS MIN_TIME_BETWEEN_FORCED_SCANS N/A dev N/A N/A device devices N/A N/A type_name N/A N/A SWITCH_TYPES keys N/A N/A N/A N/A dev append N/A ThinkingCleanerSwitch device type_name update_devices N/A N/A add_devices dev N/A ThinkingCleanerSwitch N/A ToggleEntity N/A N/A ThinkingCleaner Switch (dock, clean, find me). __init__ N/A N/A self tc_object switch_type update_devices N/A N/A N/A Initialize the ThinkingCleaner. N/A N/A self type switch_type N/A N/A self _update_devices update_devices N/A N/A self _tc_object tc_object N/A N/A self _state N/A N/A switch_type clean N/A N/A self _tc_object is_cleaning False N/A N/A self lock False N/A N/A self last_lock_time None N/A N/A self graceful_state False N/A lock_update N/A N/A self N/A N/A N/A Lock the update since TC clean takes some time to update. N/A N/A N/A self is_update_locked N/A N/A N/A N/A self lock True N/A N/A self last_lock_time N/A N/A time time N/A reset_update_lock N/A N/A self N/A N/A N/A Reset the update lock. N/A N/A self lock False N/A N/A self last_lock_time None N/A set_graceful_lock N/A N/A self state N/A N/A N/A Set the graceful state. N/A N/A self graceful_state state N/A N/A N/A self reset_update_lock N/A N/A N/A self lock_update N/A is_update_locked N/A N/A self N/A N/A N/A Check if the update method is locked. N/A N/A N/A self last_lock_time None N/A N/A False N/A N/A N/A N/A N/A time time N/A self last_lock_time MIN_TIME_TO_LOCK_UPDATE N/A N/A N/A self last_lock_time None N/A False N/A True N/A name N/A N/A self N/A N/A N/A Return the name of the sensor. N/A N/A N/A N/A N/A self _tc_object name N/A N/A SWITCH_TYPES N/A N/A self type N/A 0 N/A property is_on N/A N/A self N/A N/A N/A Return true if device is on. N/A N/A N/A self type clean N/A N/A N/A N/A N/A self is_update_locked N/A self graceful_state N/A N/A self _tc_object is_cleaning N/A False N/A property turn_on N/A N/A self N/A kwargs N/A N/A Turn the device on. N/A N/A N/A self type clean N/A N/A N/A N/A self set_graceful_lock True N/A N/A N/A N/A self _tc_object start_cleaning N/A N/A N/A N/A self type dock N/A N/A N/A N/A N/A self _tc_object dock N/A N/A N/A N/A self type find N/A N/A N/A N/A N/A self _tc_object find_me N/A turn_off N/A N/A self N/A kwargs N/A N/A Turn the device off. N/A N/A N/A self type clean N/A N/A N/A N/A self set_graceful_lock False N/A N/A N/A N/A self _tc_object stop_cleaning N/A update N/A N/A self N/A N/A N/A Update the switch state (Only for clean). N/A N/A N/A N/A self type clean N/A N/A N/A self is_update_locked N/A N/A N/A N/A N/A self _tc_object update N/A N/A self _state N/A N/A N/A self _tc_object is_cleaning STATE_ON STATE_OFF N/A N/A