custom_components/broadlinkcover/cover.py
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
    """Set up the cover platform."""
    async_add_entities(devices_from_config(config))

    platform = entity_platform.current_platform.get()

    platform.async_register_entity_service(
        SERVICE_SET_KNOWN_POSITION, POSITION_SCHEMA, "set_known_position"
    )

    platform.async_register_entity_service(
        SERVICE_SET_KNOWN_ACTION, ACTION_SCHEMA, "set_known_action"
    )
Set up the cover platform.
Set up the cover platform.
Set up the cover platform .
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
    async_add_entities(devices_from_config(config))
    platform = entity_platform.current_platform.get()
    platform.async_register_entity_service(
        SERVICE_SET_KNOWN_POSITION, POSITION_SCHEMA, "set_known_position"
    )
    platform.async_register_entity_service(
        SERVICE_SET_KNOWN_ACTION, ACTION_SCHEMA, "set_known_action"
    )
async def async_setup_platform ( hass , config , async_add_entities , discovery_info = None ) : async_add_entities ( devices_from_config ( config ) ) platform = entity_platform . current_platform . get ( ) platform . async_register_entity_service ( SERVICE_SET_KNOWN_POSITION , POSITION_SCHEMA , "set_known_position" ) platform . async_register_entity_service ( SERVICE_SET_KNOWN_ACTION , ACTION_SCHEMA , "set_known_action" )
Set up the cover platform.
Set up the cover platform .
"""Set up the cover platform."""
hass
config
async_add_entities
discovery_info