Skip to content

Commit

Permalink
Fix CONF_SERIAL type in options flow to be int instead of str (#…
Browse files Browse the repository at this point in the history
…200)

This seems to have been a copy-paste error, as the type of a TCP serial
must really be `int` and not `str` (#199 (comment)).
  • Loading branch information
MarijnS95 authored May 15, 2023
1 parent 4b0f350 commit 1026c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/omnik_inverter/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ async def async_step_init(
vol.Required(
CONF_SERIAL, default=self.config_entry.data.get(CONF_SERIAL)
)
] = str
] = int

fields[
vol.Optional(
Expand Down

0 comments on commit 1026c70

Please sign in to comment.