Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Sep 23, 2024
1 parent 4fea31c commit 1ddac69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions components/tc_bus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import esphome.config_validation as cv
from esphome.components import text_sensor, binary_sensor
from esphome import pins, automation
from esphome.const import CONF_ID, ENTITY_CATEGORY_DIAGNOSTIC, CONF_TRIGGER_ID, CONF_TYPE
from esphome.const import CONF_ID, ENTITY_CATEGORY_DIAGNOSTIC, CONF_TRIGGER_ID, CONF_TYPE, CONF_VALUE

AUTO_LOAD = ["binary_sensor", "text_sensor"]

Expand Down Expand Up @@ -87,8 +87,6 @@
CONF_PAYLOAD = "payload"
CONF_PAYLOAD_LAMBDA = "payload_lambda"

CONF_VALUE = "value"

CONF_BUS_COMMAND = "bus_command"
CONF_HARDWARE_VERSION = "hardware_version"
CONF_DOOR_READINESS = "door_readiness"
Expand Down
2 changes: 1 addition & 1 deletion components/tc_bus/protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ namespace esphome
case COMMAND_TYPE_WRITE_MEMORY:
command |= (8 << 28); // 8
command |= (2 << 24); // 2
command |= ((address * 4) & 0xFF) << 16; // start address
command |= (address & 0xFF) << 16; // start address
command |= payload & 0xFFFF; // ABCD payload
break;

Expand Down

0 comments on commit 1ddac69

Please sign in to comment.