am43-ctrl icon indicating copy to clipboard operation
am43-ctrl copied to clipboard

Deprecation warning from home assistant

Open provinzio opened this issue 3 years ago • 3 comments

This might be a quick fix in MQTTConnector.js, but I am not sure if we can just change value_template with position_topic.

Warning from Home Assistant:

Logger: homeassistant.components.mqtt.cover
Source: components/mqtt/cover.py:130
Integration: MQTT (documentation, issues)
First occurred: 07:45:23 (2 occurrences)
Last logged: 07:45:23
using 'value_template' for 'position_topic' is deprecated and will be removed from Home Assistant in version 2021.6, please replace it with 'position_template'

provinzio avatar Mar 24 '21 09:03 provinzio

Looks like position_template must be added in the discovery configuration of MqttConnector. Value must be the same as current value in value_template. I assume value_template can be left for backwards compatibility purposes. If you're up to, you can try adding position_template in the coverConfig and give me feedback. My HA environment is a bit behind with updates at the moment... (https://www.home-assistant.io/integrations/cover.mqtt/)

binsentsu avatar Mar 24 '21 19:03 binsentsu

I am afraid that I won't be of any help here. I was barely able to do the setup. I have no idea how I can setup a dev environment or upgrade the module used by pm2.

provinzio avatar Mar 24 '21 19:03 provinzio

No problem. I will check it this weekend.

binsentsu avatar Mar 25 '21 07:03 binsentsu