Skip to content

Commit 0367a01

Browse files
Enable strict typing for GitHub integration (home-assistant#154048)
1 parent 86e2c2f commit 0367a01

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.strict-typing

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ homeassistant.components.generic_thermostat.*
221221
homeassistant.components.geo_location.*
222222
homeassistant.components.geocaching.*
223223
homeassistant.components.gios.*
224+
homeassistant.components.github.*
224225
homeassistant.components.glances.*
225226
homeassistant.components.go2rtc.*
226227
homeassistant.components.goalzero.*

homeassistant/components/github/coordinator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,6 @@ async def subscribe(self) -> None:
167167
)
168168
self.hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, self.unsubscribe)
169169

170-
def unsubscribe(self, *args) -> None:
170+
def unsubscribe(self, *args: Any) -> None:
171171
"""Unsubscribe to repository events."""
172172
self._client.repos.events.unsubscribe(subscription_id=self._subscription_id)

mypy.ini

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)