ljmerza / ha-email-sensor

Email Sensor for collecting tracking numbers from over 40 providers.
MIT License
87 stars 22 forks source link

custom imap server #18

Closed Prostetnic-Jeltz closed 4 years ago

Prostetnic-Jeltz commented 4 years ago

Installed Version via HACS: 2.2.0

When trying to create a new sensor with custom imap server and imap port, home assistant produces following error:

Configuration invalid Invalid config for [sensor.email]: [imap_server] is an invalid option for [sensor.email]. Check: sensor.email->imap_server. (See ?, line ?).

maybe because of the constants in ha-email-sensor/custom_components/email/const.py

CONF_IMAP_SERVER = 'smtp_server' CONF_IMAP_PORT = 'smpt_port'

changing imap to smtp or smpt seems to help

ljmerza commented 4 years ago

yes, i missed that part when updating the config. changed in v2.2.1 thanks!