"""Manage outbound OFF All-Link Broadcast command to a device."""

from .all_link_cleanup_command import AllLinkCleanupCommandHandlerBase
from ...topics import OFF

class OffAllLinkCleanupCommand(AllLinkCleanupCommandHandlerBase):
    """Manage outbound OFF All-Link Broadcast command to a device."""

    def __init__(self, address):
        """Init the OnLevelCommand class."""
        super().__init__(address=address, command=OFF)

    #pylint: disable=arguments-differ
    def send(self, group):
        """Send the ON command."""
        super().send(group=0, cmd2=group)

    #pylint: disable=arguments-differ
    async def async_send(self, group):
        """Send the ON command async."""
        return await super().async_send(group=0, cmd2=group)
