From 1b2dfb8ed159f9abb460cb834de258e069a12aaf Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Tue, 25 Oct 2016 16:38:22 -0400 Subject: [PATCH] Handle FreeBSD version in updater component (#4048) --- homeassistant/components/updater.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/updater.py b/homeassistant/components/updater.py index 515e5f431a5..f597c8d1c52 100644 --- a/homeassistant/components/updater.py +++ b/homeassistant/components/updater.py @@ -108,6 +108,8 @@ def get_newest_version(huuid): info_object['os_version'] = platform.win32_ver()[0] elif platform.system() == 'Darwin': info_object['os_version'] = platform.mac_ver()[0] + elif platform.system() == 'FreeBSD': + info_object['os_version'] = platform.release() elif platform.system() == 'Linux': import distro linux_dist = distro.linux_distribution(full_distribution_name=False)