Skip to content

Commit

Permalink
fix: removed dead code + test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Disane87 committed Oct 5, 2023
1 parent 4ae3bd5 commit bda57bc
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions custom_components/spoolman/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ async def async_setup(hass: HomeAssistant, config):
async def async_setup_entry(hass: HomeAssistant, entry):
"""Set up the Spoolman component from a config entry."""
_LOGGER.debug("__init__.async_setup_entry")
# session = async_create_clientsession(hass)

coordinator = SpoolManCoordinator(hass, entry)
await coordinator.async_refresh()
Expand All @@ -58,17 +57,6 @@ async def async_unload_entry(hass: HomeAssistant, entry):
async def async_get_data(hass: HomeAssistant):
"""Get the latest data from the Spoolman API."""
_LOGGER.debug("__init__.async_get_data")
# url = hass.data[DOMAIN][CONF_URL]
return await hass.data[DOMAIN][SPOOLMAN_API_WRAPPER].get_spool(
{"allow_archived": False}
)

# async with aiohttp.ClientSession() as session:
# try:
# headers = {}

# async with session.get(url, headers=headers) as response:
# data = await response.json()
# return data
# except Exception as ex:
# _LOGGER.error("Error fetching data from Spoolman API: %s", ex)

0 comments on commit bda57bc

Please sign in to comment.