Namespaces | |
| config_flow | |
| const | |
| media_player | |
Classes | |
| class | PS4Data |
Functions | |
| dict | _reformat_data (HomeAssistant hass, dict games, str unique_id) |
| bool | async_migrate_entry (HomeAssistant hass, ConfigEntry entry) |
| bool | async_setup (HomeAssistant hass, ConfigType config) |
| bool | async_setup_entry (HomeAssistant hass, ConfigEntry entry) |
| bool | async_unload_entry (HomeAssistant hass, ConfigEntry entry) |
| def | format_unique_id (creds, mac_address) |
| JsonObjectType | load_games (HomeAssistant hass, str unique_id) |
| def | save_games (HomeAssistant hass, dict games, str unique_id) |
| def | service_handle (HomeAssistant hass) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN) | |
| list | PLATFORMS = [Platform.MEDIA_PLAYER] |
| PS4_COMMAND_SCHEMA | |
| string | SERVICE_COMMAND = "send_command" |
Support for PlayStation 4 consoles.
|
private |
Reformat data to correct format.
Definition at line 196 of file __init__.py.
| bool homeassistant.components.ps4.async_migrate_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Migrate old entry.
Definition at line 91 of file __init__.py.
| bool homeassistant.components.ps4.async_setup | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
Set up the PS4 Component.
Definition at line 69 of file __init__.py.
| bool homeassistant.components.ps4.async_setup_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Set up PS4 from a config entry.
Definition at line 80 of file __init__.py.
| bool homeassistant.components.ps4.async_unload_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Unload a PS4 config entry.
Definition at line 86 of file __init__.py.
| def homeassistant.components.ps4.format_unique_id | ( | creds, | |
| mac_address | |||
| ) |
Use last 4 Chars of credential as suffix. Unique ID per PSN user.
Definition at line 166 of file __init__.py.
| JsonObjectType homeassistant.components.ps4.load_games | ( | HomeAssistant | hass, |
| str | unique_id | ||
| ) |
Load games for sources.
Definition at line 172 of file __init__.py.
| def homeassistant.components.ps4.save_games | ( | HomeAssistant | hass, |
| dict | games, | ||
| str | unique_id | ||
| ) |
Save games to file.
Definition at line 187 of file __init__.py.
| def homeassistant.components.ps4.service_handle | ( | HomeAssistant | hass | ) |
Handle for services.
Definition at line 219 of file __init__.py.
|
private |
Definition at line 44 of file __init__.py.
| homeassistant.components.ps4.CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN) |
Definition at line 57 of file __init__.py.
| list homeassistant.components.ps4.PLATFORMS = [Platform.MEDIA_PLAYER] |
Definition at line 55 of file __init__.py.
| homeassistant.components.ps4.PS4_COMMAND_SCHEMA |
Definition at line 48 of file __init__.py.
| string homeassistant.components.ps4.SERVICE_COMMAND = "send_command" |
Definition at line 46 of file __init__.py.