mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Merge pull request #5000 from home-assistant/rfxtrx_lib_0.14
rfxtrx lib upgrade
This commit is contained in:
commit
08591aacc9
@ -14,7 +14,7 @@ from homeassistant.const import EVENT_HOMEASSISTANT_STOP
|
|||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
from homeassistant.const import (ATTR_ENTITY_ID, TEMP_CELSIUS)
|
from homeassistant.const import (ATTR_ENTITY_ID, TEMP_CELSIUS)
|
||||||
|
|
||||||
REQUIREMENTS = ['pyRFXtrx==0.13.0']
|
REQUIREMENTS = ['pyRFXtrx==0.14.0']
|
||||||
|
|
||||||
DOMAIN = "rfxtrx"
|
DOMAIN = "rfxtrx"
|
||||||
|
|
||||||
@ -132,11 +132,12 @@ def setup(hass, config):
|
|||||||
# Log RFXCOM event
|
# Log RFXCOM event
|
||||||
if not event.device.id_string:
|
if not event.device.id_string:
|
||||||
return
|
return
|
||||||
_LOGGER.info("Receive RFXCOM event from "
|
_LOGGER.debug("Receive RFXCOM event from "
|
||||||
"(Device_id: %s Class: %s Sub: %s)",
|
"(Device_id: %s Class: %s Sub: %s, Pkt_id: %s)",
|
||||||
slugify(event.device.id_string.lower()),
|
slugify(event.device.id_string.lower()),
|
||||||
event.device.__class__.__name__,
|
event.device.__class__.__name__,
|
||||||
event.device.subtype)
|
event.device.subtype,
|
||||||
|
"".join("{0:02x}".format(x) for x in event.data))
|
||||||
|
|
||||||
# Callback to HA registered components.
|
# Callback to HA registered components.
|
||||||
for subscriber in RECEIVED_EVT_SUBSCRIBERS:
|
for subscriber in RECEIVED_EVT_SUBSCRIBERS:
|
||||||
@ -274,6 +275,14 @@ def apply_received_command(event):
|
|||||||
ATTR_STATE: event.values['Command'].lower()
|
ATTR_STATE: event.values['Command'].lower()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
_LOGGER.info(
|
||||||
|
"Rfxtrx fired event: (event_type: %s, %s: %s, %s: %s)",
|
||||||
|
EVENT_BUTTON_PRESSED,
|
||||||
|
ATTR_ENTITY_ID,
|
||||||
|
RFX_DEVICES[device_id].entity_id,
|
||||||
|
ATTR_STATE,
|
||||||
|
event.values['Command'].lower()
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class RfxtrxDevice(Entity):
|
class RfxtrxDevice(Entity):
|
||||||
|
@ -369,7 +369,7 @@ pwaqi==1.3
|
|||||||
py-cpuinfo==0.2.3
|
py-cpuinfo==0.2.3
|
||||||
|
|
||||||
# homeassistant.components.rfxtrx
|
# homeassistant.components.rfxtrx
|
||||||
pyRFXtrx==0.13.0
|
pyRFXtrx==0.14.0
|
||||||
|
|
||||||
# homeassistant.components.notify.xmpp
|
# homeassistant.components.notify.xmpp
|
||||||
pyasn1-modules==0.0.8
|
pyasn1-modules==0.0.8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user