[arch-commits] Commit in home-assistant/trunk (2 files)

Maxime Gauduin alucryd at archlinux.org
Sun Sep 20 10:55:12 UTC 2020


    Date: Sunday, September 20, 2020 @ 10:55:11
  Author: alucryd
Revision: 711029

upgpkg: home-assistant 0.115.2-1

Modified:
  home-assistant/trunk/PKGBUILD
  home-assistant/trunk/home-assistant-astral2.2.patch

--------------------------------+
 PKGBUILD                       |    6 +++---
 home-assistant-astral2.2.patch |   39 ++++++++++++++++++++++++++++-----------
 2 files changed, 31 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-20 10:52:34 UTC (rev 711028)
+++ PKGBUILD	2020-09-20 10:55:11 UTC (rev 711029)
@@ -6,7 +6,7 @@
 
 pkgname=home-assistant
 pkgdesc='Open source home automation that puts local control and privacy first'
-pkgver=0.114.4
+pkgver=0.115.2
 pkgrel=1
 arch=(any)
 url=https://home-assistant.io/
@@ -45,7 +45,7 @@
   'openzwave: Z-Wave integration'
   'python-lxml: Meteo France integration'
 )
-_tag=2e4cd5f3435d14cb8564bed2141313e997c0d423
+_tag=ddbadb1e2649526696db56693ddf1c2e0183b665
 source=(
   git+https://github.com/home-assistant/home-assistant.git#tag=${_tag}
   home-assistant.service
@@ -53,7 +53,7 @@
 )
 b2sums=('SKIP'
         '0df7bbfdac09e37294ac27567e677855c72d13be3aefbd23e0a8f101cf2148302affbe9b6b586b893f77fc990f665d7b95f4916583680c06abd8f74b5cdf3da9'
-        '9feb1f480b553689d1a3d5e51770a25df168f3b3e97db3f25bd7c55c66762271a4b86fe5628c41af58bd19cb51b56dc7019c3256584dbf00a30bc9747f926711')
+        'e3259a9f73d92bb5059667717a7d0f2a23ea4f17c70f6392f5b24c1f8b247488300941bf1cfbcc34cfe410f506e877230f1196d74aa7961ba4051a6bec5d1b2d')
 
 pkgver() {
   cd home-assistant

Modified: home-assistant-astral2.2.patch
===================================================================
--- home-assistant-astral2.2.patch	2020-09-20 10:52:34 UTC (rev 711028)
+++ home-assistant-astral2.2.patch	2020-09-20 10:55:11 UTC (rev 711029)
@@ -1,3 +1,17 @@
+From 6a75aa37253dd04d4ba12dd72b5bb374ea0154f1 Mon Sep 17 00:00:00 2001
+From: Maxime Gauduin <alucryd at archlinux.org>
+Date: Thu, 27 Feb 2020 17:27:37 +0100
+Subject: [PATCH] bump astral to 2.2
+
+---
+ homeassistant/components/moon/sensor.py  |  4 +-
+ homeassistant/components/sun/__init__.py | 20 +++++-----
+ homeassistant/helpers/sun.py             | 51 ++++++++++++++----------
+ homeassistant/package_constraints.txt    |  2 +-
+ requirements.txt                         |  2 +-
+ setup.py                                 |  2 +-
+ 6 files changed, 47 insertions(+), 34 deletions(-)
+
 diff --git a/homeassistant/components/moon/sensor.py b/homeassistant/components/moon/sensor.py
 index 3a25b68eea..20ee6c1c54 100644
 --- a/homeassistant/components/moon/sensor.py
@@ -18,7 +32,7 @@
 -        self._state = Astral().moon_phase(today)
 +        self._state = moon.phase(today)
 diff --git a/homeassistant/components/sun/__init__.py b/homeassistant/components/sun/__init__.py
-index fe89413f4d..677948de02 100644
+index 5fb777bd32..55d86de49a 100644
 --- a/homeassistant/components/sun/__init__.py
 +++ b/homeassistant/components/sun/__init__.py
 @@ -92,6 +92,7 @@ class Sun(Entity):
@@ -39,7 +53,7 @@
                  return
              self.location = location
 +            self.elevation = elevation
-             self.update_events(dt_util.utcnow())
+             self.update_events()
  
          update_location(None)
 @@ -140,7 +142,7 @@ class Sun(Entity):
@@ -51,7 +65,7 @@
          )
          if next_utc < self._next_change:
              self._next_change = next_utc
-@@ -167,7 +169,7 @@ class Sun(Entity):
+@@ -169,7 +171,7 @@ class Sun(Entity):
          )
          self.location.solar_depression = -10
          self._check_event(utc_point_in_time, "dawn", PHASE_SMALL_DAY)
@@ -60,7 +74,7 @@
          self._check_event(utc_point_in_time, "dusk", PHASE_DAY)
          self.next_setting = self._check_event(
              utc_point_in_time, SUN_EVENT_SUNSET, PHASE_SMALL_DAY
-@@ -178,9 +180,7 @@ class Sun(Entity):
+@@ -180,9 +182,7 @@ class Sun(Entity):
          self._check_event(utc_point_in_time, "dusk", PHASE_NAUTICAL_TWILIGHT)
          self.location.solar_depression = "astronomical"
          self._check_event(utc_point_in_time, "dusk", PHASE_ASTRONOMICAL_TWILIGHT)
@@ -71,7 +85,7 @@
          self.location.solar_depression = "civil"
  
          # if the event was solar midday or midnight, phase will now
-@@ -188,7 +188,7 @@ class Sun(Entity):
+@@ -190,7 +190,7 @@ class Sun(Entity):
          # even in the day at the poles, so we can't rely on it.
          # Need to calculate phase if next is noon or midnight
          if self.phase is None:
@@ -80,10 +94,10 @@
              if elevation >= 10:
                  self.phase = PHASE_DAY
              elif elevation >= 0:
-@@ -218,9 +218,11 @@ class Sun(Entity):
-     @callback
-     def update_sun_position(self, utc_point_in_time):
+@@ -222,9 +222,11 @@ class Sun(Entity):
          """Calculate the position of the sun."""
+         # Grab current time in case system clock changed since last time we ran.
+         utc_point_in_time = dt_util.utcnow()
 -        self.solar_azimuth = round(self.location.solar_azimuth(utc_point_in_time), 2)
 +        self.solar_azimuth = round(
 +            self.location.solar_azimuth(utc_point_in_time, self.elevation), 2
@@ -227,7 +241,7 @@
          return None
  
 diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt
-index 58d3e3be88..2ec7bd09d6 100644
+index 0f88f88469..9871886a0a 100644
 --- a/homeassistant/package_constraints.txt
 +++ b/homeassistant/package_constraints.txt
 @@ -2,7 +2,7 @@ PyJWT==1.7.1
@@ -240,7 +254,7 @@
  attrs==19.3.0
  bcrypt==3.1.7
 diff --git a/requirements.txt b/requirements.txt
-index 702e4eaf19..f58f7b9d76 100644
+index baa48241a0..64b5a3ab89 100644
 --- a/requirements.txt
 +++ b/requirements.txt
 @@ -2,7 +2,7 @@
@@ -253,7 +267,7 @@
  attrs==19.3.0
  bcrypt==3.1.7
 diff --git a/setup.py b/setup.py
-index 81f8727ed6..5c75d1e9b6 100755
+index 0bbdf9f05a..481077b7c6 100755
 --- a/setup.py
 +++ b/setup.py
 @@ -33,7 +33,7 @@ PACKAGES = find_packages(exclude=["tests", "tests.*"])
@@ -265,3 +279,6 @@
      "async_timeout==3.0.1",
      "attrs==19.3.0",
      "bcrypt==3.1.7",
+-- 
+2.28.0
+



More information about the arch-commits mailing list