'Initialize the WOL switch.'

def __init__(self, hass, name, host, mac_address, off_action, broadcast_address):

    from wakeonlan import wol
    self._hass = hass
    self._name = name
    self._host = host
    self._mac_address = mac_address
    self._broadcast_address = broadcast_address
    self._off_script = (Script(hass, off_action) if off_action else None)
    self._state = False
    self._wol = wol
