Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
autoSteve committed Oct 22, 2024
1 parent ae73f79 commit f98d0be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/solcast_solar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:

solcast.headers = {
'Accept': 'application/json',
'User-Agent': 'ha-solcast-solar-integration/'+version[:version.rfind('.')-1]
'User-Agent': 'ha-solcast-solar-integration/'+version[:version.rfind('.')]
}
_LOGGER.debug("Session headers: %s", solcast.headers)

Expand Down

0 comments on commit f98d0be

Please sign in to comment.