Skip to content

Commit

Permalink
make isapi request enabled by defaault
Browse files Browse the repository at this point in the history
  • Loading branch information
pergolafabio committed Nov 5, 2024
1 parent bc7e50d commit 56157f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hikvision-doorbell/src/mqtt_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ def __init__(self, config: AppConfig.MQTT, doorbells: Registry) -> None:
name="ISAPI request",
unique_id=f"{sanitized_doorbell_name}_isapi_request",
device=device,
enabled_by_default=False,
entity_category="diagnostic",
# enabled_by_default=False,
# entity_category="diagnostic",
object_id=f"{sanitized_doorbell_name}_isapi_request")
settings = Settings(mqtt=mqtt_settings, entity=text_info, manual_availability=True)
isapi_text = Text(settings, self._isapi_input_callback, doorbell)
Expand Down Expand Up @@ -502,7 +502,7 @@ def _unmute_audio_output_callback(self, client, doorbell: Doorbell, message: MQT
logger.error("Error unmuting: {}", err)

def _isapi_input_callback(self, client, doorbell: Doorbell, message: MQTTMessage):
logger.debug("Received input text for doorbell: {}", doorbell._config.name)
logger.info("Received input text for doorbell: {}", doorbell._config.name)

text_string = message.payload.decode('utf-8')

Expand Down

0 comments on commit 56157f5

Please sign in to comment.