Skip to content

Commit

Permalink
Add missing definition
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Oct 26, 2024
1 parent 90a230e commit e9d28f8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions components/tc_bus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,14 @@ def validate_config(config):
IntercomRingtoneInternalCallSelect,
entity_category=ENTITY_CATEGORY_CONFIG,
),
cv.Optional(CONF_RINGTONE_INTERNAL_CALL): number.number_schema(
cv.Optional(CONF_VOLUME_HANDSET): number.number_schema(
IntercomVolumeHandsetNumber,
entity_category=ENTITY_CATEGORY_CONFIG,
),
cv.Optional(CONF_VOLUME_RINGTONE): number.number_schema(
IntercomVolumeRingtoneNumber,
entity_category=ENTITY_CATEGORY_CONFIG,
),
cv.Optional(CONF_BUS_COMMAND): text_sensor.text_sensor_schema(
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
icon="mdi:console-network",
Expand Down Expand Up @@ -276,7 +280,7 @@ async def to_code(config):

if volume_ringtone := config.get(CONF_VOLUME_RINGTONE):
n = await number.new_number(
volume_ringtone, min_value=0, max_value=7, step=1
volume_handset, min_value=0, max_value=7, step=1
)
await cg.register_parented(n, config[CONF_ID])
cg.add(var.set_intercom_volume_ringtone_number(n))
Expand Down

0 comments on commit e9d28f8

Please sign in to comment.