mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-26 18:46:29 +00:00
Fix HC for new path lib
This commit is contained in:
parent
768b4d2b1a
commit
a98a0d1a1a
@ -2,8 +2,6 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import os
|
|
||||||
import stat
|
|
||||||
|
|
||||||
import async_timeout
|
import async_timeout
|
||||||
|
|
||||||
@ -37,8 +35,7 @@ class HostControl(object):
|
|||||||
self.hostname = UNKNOWN
|
self.hostname = UNKNOWN
|
||||||
self.os_info = UNKNOWN
|
self.os_info = UNKNOWN
|
||||||
|
|
||||||
mode = os.stat(SOCKET_HC)[stat.ST_MODE]
|
if SOCKET_HC.is_socket():
|
||||||
if stat.S_ISSOCK(mode):
|
|
||||||
self.active = True
|
self.active = True
|
||||||
|
|
||||||
async def _send_command(self, command):
|
async def _send_command(self, command):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user