mirror of
https://github.com/esphome/esphome.git
synced 2025-09-06 13:22:19 +01:00
Bump pylint from 2.5.3 to 2.6.0 (#1262)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Otto Winter <otto@otto-winter.com>
This commit is contained in:
@@ -67,7 +67,7 @@ def initialize(config, subscriptions, on_message, username, password, client_id)
|
||||
port = int(config[CONF_MQTT][CONF_PORT])
|
||||
client.connect(host, port)
|
||||
except OSError as err:
|
||||
raise EsphomeError(f"Cannot connect to MQTT broker: {err}")
|
||||
raise EsphomeError(f"Cannot connect to MQTT broker: {err}") from err
|
||||
|
||||
try:
|
||||
client.loop_forever()
|
||||
|
Reference in New Issue
Block a user