Skip to content

Commit a3409f0

Browse files
authored
Merge pull request #4 from kverqus/2.0.0-dev
cleanup of unused imports
2 parents b8fb9cc + 0b2ad3e commit a3409f0

File tree

4 files changed

+17
-22
lines changed

4 files changed

+17
-22
lines changed

custom_components/hassam/__init__.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
import logging
2-
import time
3-
4-
from datetime import timedelta
52

63
from homeassistant.core import HomeAssistant, callback
74
from homeassistant.config_entries import ConfigEntry
@@ -32,7 +29,7 @@ async def find_address(service):
3229
'result': result
3330
})
3431
return True
35-
32+
3633
except Exception as err:
3734
_LOGGER.debug('[find_address] Lookup failed')
3835
hass.bus.fire(DOMAIN, {
@@ -89,4 +86,4 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
8986

9087
async def update_listener(hass: HomeAssistant, entry: ConfigEntry) -> None:
9188
_LOGGER.error('[update] Update listener running')
92-
hass.async_create_task(hass.config_entries.async_reload(entry.entry_id))
89+
hass.async_create_task(hass.config_entries.async_reload(entry.entry_id))

custom_components/hassam/config_flow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import voluptuous as vol
55

6-
from homeassistant import config_entries, exceptions
6+
from homeassistant import config_entries
77
from homeassistant.core import HomeAssistant, callback
88
from homeassistant.data_entry_flow import FlowResult
99

@@ -81,7 +81,7 @@ async def async_step_config(self, user_input: dict[str, Any] | None = None):
8181
except Exception as err:
8282
_LOGGER.error(f'[setup_integration] Entry creation failed for {self._name}: {str(err)}')
8383
return self.async_abort(reason='not_supported')
84-
84+
8585
return self.async_show_form(
8686
step_id='config',
8787
data_schema=DATA_SCHEMA,

custom_components/hassam/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from homeassistant.const import CONF_NAME
22
from datetime import timedelta
33

4-
__version__ = "2.0.0"
4+
__version__ = "2.0.1"
55
VERSION = __version__
66
DOMAIN = "hassam"
77

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
{
2-
"domain": "hassam",
3-
"name": "SSAM Hämtschema",
4-
"codeowners": ["@kverqus"],
5-
"config_flow": true,
6-
"documentation": "https://github.com/kverqus/hassam",
7-
"integration_type": "hub",
8-
"iot_class": "cloud_polling",
9-
"issue_tracker": "https://github.com/kverqus/hassam/issues",
10-
"quality_scale": "silver",
11-
"requirements": [
12-
"httpx>0.12.1"
13-
],
14-
"version": "2.0.0"
15-
}
2+
"domain": "hassam",
3+
"name": "SSAM Hämtschema",
4+
"codeowners": ["@kverqus"],
5+
"config_flow": true,
6+
"documentation": "https://github.com/kverqus/hassam",
7+
"integration_type": "hub",
8+
"iot_class": "cloud_polling",
9+
"issue_tracker": "https://github.com/kverqus/hassam/issues",
10+
"quality_scale": "silver",
11+
"requirements": ["httpx>0.12.1"],
12+
"version": "2.0.1"
13+
}

0 commit comments

Comments
 (0)