* Integration for Energenie Power-Strips (EGPS) * cleanups reocommended by reviewer * Adds missing exception handling when trying to send a command to an unreachable device. * fix: incorrect handling of already opened devices in pyegps api. bump to pyegps=0.2.4 * Add blank line after file docstring, and other cosmetics * change asyncio.to_thread to async_add_executer_job * raises HomeAssistantError EgpsException in switch services. * switch test parameterized by entity name * reoved unused device registry * add translation_key and update_before_add * bump pyegps dependency to version to 0.2.5 * combined get_device patches and put into conftest.py * changed switch entity to use _attr_is_on and cleanups * further cleanup * Apply suggestions from code review * refactor: rename egps to energenie_power_sockets * updated test snapshot --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
8 lines
175 B
Python
8 lines
175 B
Python
"""Constants for Energenie Power Sockets."""
|
|
|
|
import logging
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
|
|
CONF_DEVICE_API_ID = "api-device-id"
|
|
DOMAIN = "energenie_power_sockets"
|