diff --git a/components/tc_bus/__init__.py b/components/tc_bus/__init__.py index 3d93daf..92e839f 100644 --- a/components/tc_bus/__init__.py +++ b/components/tc_bus/__init__.py @@ -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", @@ -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))