mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-24 01:26:35 +00:00
Update hostname.py
This commit is contained in:
parent
d94715be2b
commit
7541ae6476
@ -23,12 +23,12 @@ class Hostname(DBusInterface):
|
|||||||
_LOGGER.warning("Can't connect to hostname")
|
_LOGGER.warning("Can't connect to hostname")
|
||||||
|
|
||||||
@dbus_connected
|
@dbus_connected
|
||||||
def set_hostname(self, hostname):
|
def set_static_hostname(self, hostname):
|
||||||
"""Change local hostname.
|
"""Change local hostname.
|
||||||
|
|
||||||
Return a coroutine.
|
Return a coroutine.
|
||||||
"""
|
"""
|
||||||
return self.dbus.SetHostname(hostname)
|
return self.dbus.SetStaticHostname(hostname)
|
||||||
|
|
||||||
@dbus_connected
|
@dbus_connected
|
||||||
def get_properties(self):
|
def get_properties(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user