Skip to content

Commit

Permalink
Merge pull request #58 from Jochen754/master
Browse files Browse the repository at this point in the history
fix: Update __init__.py --> Fix for Homeassistant Error in 2024.1.0 --> "TypeError: host must be a str"
  • Loading branch information
erikarenhill authored Jan 5, 2024
2 parents 3febcd4 + 2d14010 commit e711b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/solaredge_modbus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async def async_setup(hass, config):
host = conf[CONF_HOST]
port = conf["port"]

client = ModbusClient(host, port=port, unit_id=1, auto_open=True)
client = ModbusClient(str(host), port=port, unit_id=1, auto_open=True)
hass.data[DOMAIN] = client

_LOGGER.debug("creating modbus client done")
Expand Down

0 comments on commit e711b15

Please sign in to comment.