Update hostname.py

This commit is contained in:
Pascal Vizeli 2018-04-27 22:31:37 +02:00 committed by GitHub
parent d94715be2b
commit 7541ae6476
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,12 +23,12 @@ class Hostname(DBusInterface):
_LOGGER.warning("Can't connect to hostname")
@dbus_connected
def set_hostname(self, hostname):
def set_static_hostname(self, hostname):
"""Change local hostname.
Return a coroutine.
"""
return self.dbus.SetHostname(hostname)
return self.dbus.SetStaticHostname(hostname)
@dbus_connected
def get_properties(self):