Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
Discovery test
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidy committed Dec 15, 2021
1 parent 3750c5f commit 93808e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions custom_components/wiz_light/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
import logging
from dataclasses import dataclass

from ipaddress import ip_network

from homeassistant.config_entries import ConfigEntry
from homeassistant.components import network
from homeassistant.const import CONF_HOST
from homeassistant.core import HomeAssistant
from homeassistant.exceptions import ConfigEntryNotReady
Expand All @@ -18,8 +21,10 @@

async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
"""Set up the wiz_light integration from a config entry."""

ip_address = entry.data.get(CONF_HOST)
_LOGGER.debug("Get bulb with IP: %s", ip_address)

try:
bulb = wizlight(ip_address)
mac_addr = await bulb.getMac()
Expand Down

0 comments on commit 93808e5

Please sign in to comment.