MCPcopy Create free account

hub / github.com/algirdasc/hass-eso / functions

Functions65 in github.com/algirdasc/hass-eso

↓ 82 callersMethodget
(self, attribute: str)
custom_components/eso/form_parser.py:16
↓ 4 callersFunction_imap_schema
(defaults: dict | None = None)
custom_components/eso/config_flow.py:63
↓ 4 callersMethod_new_session
()
custom_components/eso/eso_client.py:63
↓ 3 callersFunction_build_imap_config
Turn IMAP form input into a stored config block (mailbox is required).
custom_components/eso/config_flow.py:91
↓ 2 callersFunction_object_from_settings
Build a stored object dict from a settings form submission.
custom_components/eso/config_flow.py:142
↓ 2 callersFunction_object_subentry
Wrap an object dict as an object subentry.
custom_components/eso/config_flow.py:157
↓ 2 callersMethod_open_consumption
GET the consumption page with the current session and parse its Drupal form tokens. Returns True when the session is authenticated (i.
custom_components/eso/eso_client.py:160
↓ 2 callersFunction_runtime_imap
Map a stored IMAP block to the keyword shape ESOClient expects.
custom_components/eso/config_flow.py:103
↓ 2 callersFunction_settings_schema
Schema for a single object's settings (used for add & reconfigure).
custom_components/eso/config_flow.py:117
↓ 2 callersMethodfetch
(self, obj: str, date: datetime)
custom_components/eso/eso_client.py:370
↓ 2 callersFunctionget_previous_sum
(hass: HomeAssistant, metadata: StatisticMetaData, date: datetime)
custom_components/eso/__init__.py:311
↓ 2 callersMethodlogin
Establish an authenticated ESO session. Strategy: try to reuse a persisted Drupal session cookie, falling back to a full password ->
custom_components/eso/eso_client.py:68
↓ 1 callersFunction_async_generate_price_dict
( hass: HomeAssistant, obj: dict, time_from: datetime, time_to: datetime )
custom_components/eso/__init__.py:370
↓ 1 callersFunction_async_get_statistics
(hass: HomeAssistant, metadata: StatisticMetaData, generation_data: dict)
custom_components/eso/__init__.py:294
↓ 1 callersFunction_async_register_services
Register integration services once.
custom_components/eso/__init__.py:213
↓ 1 callersMethod_delete_message
Delete the consumed OTP email and expunge it from the folder. Standard IMAP delete (\\Deleted + EXPUNGE). On Gmail this removes the m
custom_components/eso/eso_client.py:283
↓ 1 callersFunction_entry_objects
Return the configured objects (one per subentry) as object dicts.
custom_components/eso/__init__.py:95
↓ 1 callersMethod_extract_code
(text: str)
custom_components/eso/eso_client.py:327
↓ 1 callersMethod_extract_tfa_build_id
Pull form_build_id out of the gpc-tfa-login-auth-form only, so we don't pick up another form's token from the same page.
custom_components/eso/eso_client.py:214
↓ 1 callersMethod_fetch_otp
(self, login_started: datetime)
custom_components/eso/eso_client.py:230
↓ 1 callersMethod_full_login
Submit the username/password form. ESO redirects to the TFA page and emails a one-time code, which we then retrieve and submit.
custom_components/eso/eso_client.py:171
↓ 1 callersMethod_load_session
(self)
custom_components/eso/eso_client.py:353
↓ 1 callersMethod_message_text
(msg)
custom_components/eso/eso_client.py:309
↓ 1 callersMethod_parse_msg_date
(msg)
custom_components/eso/eso_client.py:297
↓ 1 callersMethod_poll_imap_once
(self, cfg: dict, min_time: datetime)
custom_components/eso/eso_client.py:249
↓ 1 callersMethod_save_session
(self)
custom_components/eso/eso_client.py:343
↓ 1 callersFunctionasync_import_generation
(now: datetime, retry: bool = False)
custom_components/eso/__init__.py:157
↓ 1 callersFunctionasync_insert_cost_statistics
( hass: HomeAssistant, obj: dict, consumption_dataset: dict )
custom_components/eso/__init__.py:331
↓ 1 callersFunctionasync_insert_statistics
( hass: HomeAssistant, obj: dict, dataset: dict )
custom_components/eso/__init__.py:266
↓ 1 callersMethodasync_step_imap
( self, user_input: dict[str, Any] | None = None )
custom_components/eso/config_flow.py:209
↓ 1 callersMethodasync_step_objects
( self, user_input: dict[str, Any] | None = None )
custom_components/eso/config_flow.py:227
↓ 1 callersMethodasync_step_reauth_confirm
( self, user_input: dict[str, Any] | None = None )
custom_components/eso/config_flow.py:347
↓ 1 callersMethodasync_step_settings
( self, user_input: dict[str, Any] | None = None )
custom_components/eso/config_flow.py:536
↓ 1 callersFunctionclean_object_name
Derive the address object address from a select option label. The select label is ``<address>, <postcode> <city>, <meter number>``; the trail
custom_components/eso/objects_parser.py:49
↓ 1 callersMethodget_dataset
(self, obj: str)
custom_components/eso/eso_client.py:435
↓ 1 callersMethodhandle_input_tag
(self, attrs: tuple)
custom_components/eso/form_parser.py:24
↓ 1 callersMethodparse_dataset
(dataset: dict)
custom_components/eso/eso_client.py:441
↓ 1 callersMethodset
(self, attribute: str, value: str)
custom_components/eso/form_parser.py:21
Method__init__
(self)
custom_components/eso/objects_parser.py:18
Method__init__
(self)
custom_components/eso/config_flow.py:172
Method__init__
(self)
custom_components/eso/config_flow.py:485
Method__init__
(self, username: str, password: str, imap_config: dict | None = None, session_file: str | None = None)
custom_components/eso/eso_client.py:52
Method__init__
(self)
custom_components/eso/form_parser.py:7
Function_retry
(_now: datetime)
custom_components/eso/__init__.py:189
Functionasync_create_fix_flow
Create a fix flow for an ESO repair issue.
custom_components/eso/repairs.py:9
Methodasync_get_options_flow
(config_entry: ConfigEntry)
custom_components/eso/config_flow.py:408
Methodasync_get_supported_subentry_types
( cls, config_entry: ConfigEntry )
custom_components/eso/config_flow.py:413
Functionasync_handle_import_now
(call: ServiceCall)
custom_components/eso/__init__.py:218
Functionasync_reload_entry
Reload the config entry when its options change.
custom_components/eso/__init__.py:261
Functionasync_setup
Import a legacy YAML configuration into a config entry.
custom_components/eso/__init__.py:104
Functionasync_setup_entry
Set up ESO from a config entry.
custom_components/eso/__init__.py:128
Methodasync_step_import
(self, import_data: dict[str, Any])
custom_components/eso/config_flow.py:298
Methodasync_step_init
( self, user_input: dict[str, Any] | None = None )
custom_components/eso/config_flow.py:422
Methodasync_step_reauth
( self, entry_data: dict[str, Any] )
custom_components/eso/config_flow.py:339
Methodasync_step_reconfigure
( self, user_input: dict[str, Any] | None = None )
custom_components/eso/config_flow.py:557
Methodasync_step_user
( self, user_input: dict[str, Any] | None = None )
custom_components/eso/config_flow.py:181
Methodasync_step_user
( self, user_input: dict[str, Any] | None = None )
custom_components/eso/config_flow.py:492
Functionasync_unload_entry
Unload a config entry (scheduling is torn down via async_on_unload).
custom_components/eso/__init__.py:247
Methodcheck_password
Validate the ESO username/password without completing 2FA. Submits the login form on a throwaway session and reports whether the credentials
custom_components/eso/eso_client.py:102
Methoddiscover_objects
Return the account's objects as ``[{"id", "name"}]``. Performs a full login and scrapes the object IDs from the consumption-page sele
custom_components/eso/eso_client.py:132
Methodfetch_dataset
(self, obj: str, date: datetime)
custom_components/eso/eso_client.py:414
Methodhandle_data
(self, data: str)
custom_components/eso/objects_parser.py:34
Methodhandle_endtag
(self, tag: str)
custom_components/eso/objects_parser.py:38
Methodhandle_starttag
(self, tag: str, attrs: list)
custom_components/eso/objects_parser.py:25
Methodhandle_starttag
(self, tag: str, attrs: tuple)
custom_components/eso/form_parser.py:11