Skip to content

Commit

Permalink
Merge pull request OpenEPaperLink#142 from JayNewstrom/JayNewstrom-pa…
Browse files Browse the repository at this point in the history
…tch-1

Fix spacing issues in __init__.py
  • Loading branch information
jonasniesner authored May 27, 2024
2 parents dba8747 + 0ae1511 commit d599e1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/open_epaper_link/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async def setled(service: ServiceCall) -> None:
url = "http://" + ip + "/led_flash?mac=" + mac + "&pattern=" + modebyte + color1 + flashSpeed1 + flashCount1 + delay1 + color2 + flashSpeed2 + flashCount2 + delay2 + color3 + flashSpeed3 + flashCount3 + delay3 + repeats + "00";
result = await hass.async_add_executor_job(requests.get, url)
if result.status_code != 200:
_LOGGER.warning(result.status_code)
_LOGGER.warning(result.status_code)

# register the services
hass.services.register(DOMAIN, "dlimg", dlimg)
Expand All @@ -122,7 +122,7 @@ async def setled(service: ServiceCall) -> None:
def int_to_hex_string(number):
hex_string = hex(number)[2:]
if len(hex_string) == 1:
hex_string = '0' + hex_string
hex_string = '0' + hex_string
return hex_string

async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
Expand Down

0 comments on commit d599e1e

Please sign in to comment.