mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-27 11:06:32 +00:00
Fix socket handling v2
This commit is contained in:
parent
611b0bebbf
commit
00dd19c292
@ -1,4 +1,5 @@
|
|||||||
"""Host controll for HassIO."""
|
"""Host controll for HassIO."""
|
||||||
|
import asyncio
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
@ -29,7 +30,8 @@ class HostControll(object):
|
|||||||
if not self.active:
|
if not self.active:
|
||||||
return
|
return
|
||||||
|
|
||||||
reader, writer = await self.loop.open_unix_connection(SOCKET_HC)
|
reader, writer = await asyncio.open_unix_connection(
|
||||||
|
SOCKET_HC, loop=self.loop)
|
||||||
|
|
||||||
# send
|
# send
|
||||||
_LOGGER.info("Send '%s' to HostControll.", command)
|
_LOGGER.info("Send '%s' to HostControll.", command)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user