Skip to content

Commit 4876e55

Browse files
authored
Merge pull request #4 from danobot/develop
Develop
2 parents 3ea8d9e + 4f79606 commit 4876e55

File tree

8 files changed

+482
-459
lines changed

8 files changed

+482
-459
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.vscode/arduino.json
22
.vscode/c_cpp_properties.json
3+
*.pyc
Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
1-
""" Empty init file required by Home Assistant """
1+
from custom_components.processor import DOMAIN
2+
from homeassistant.helpers.entity_component import EntityComponent
3+
from homeassistant.helpers.typing import ConfigType
4+
from homeassistant.config_entries import ConfigEntry
5+
from homeassistant.core import HomeAssistant
6+
import logging
7+
_LOGGER = logging.getLogger(__name__)
8+
9+
DOMAIN = 'mqtt_code'
10+
""" fdsf """
11+
12+
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
13+
"""Set up climate entities."""
14+
_LOGGER.info("mqtt_code/__init__.py - async_setup")
15+
component = hass.data[DOMAIN] = EntityComponent(
16+
_LOGGER, DOMAIN, hass)
17+
await component.async_setup(config)
18+
return True
19+
20+
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
2-
"domain": "processor",
2+
"domain": "mqtt_code",
33
"name": "MQTT Message Processor Component",
44
"documentation": "https://github.com/danobot/mqtt_payload_processor",
55
"issue_tracker": "https://github.com/danobot/mqtt_payload_processor/issues",
66
"dependencies": ["mqtt"],
77
"codeowners": ["@danobot"],
8-
"requirements": []
9-
}
8+
"requirements": [],
9+
"iot_class": "local_polling",
10+
"version": "2.1.0"
11+
}

0 commit comments

Comments
 (0)