Skip to content

Commit

Permalink
Move Lock action to config item
Browse files Browse the repository at this point in the history
  • Loading branch information
cyr-ius committed Dec 12, 2021
1 parent a9177f9 commit f0ebb43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/heatzy/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"requirements": ["heatzypy==0.1.4.2"],
"dependencies": [],
"codeowners": ["@cyr-ius"],
"version": "4.8"
"version": "4.9"
}
4 changes: 3 additions & 1 deletion custom_components/heatzy/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from heatzypy.exception import HeatzyException
from homeassistant.components.switch import SwitchEntity
from homeassistant.helpers.entity import DeviceInfo
from homeassistant.helpers.entity import DeviceInfo, EntityCategory
from homeassistant.helpers.update_coordinator import CoordinatorEntity

from .const import DOMAIN
Expand All @@ -23,6 +23,8 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
class LockSwitchEntity(CoordinatorEntity, SwitchEntity):
"""Lock Switch."""

entity_category = EntityCategory.CONFIG

def __init__(self, coordinator, _unique_id):
"""Initialize switch."""
super().__init__(coordinator)
Expand Down

0 comments on commit f0ebb43

Please sign in to comment.