Commit Graph

28 Commits (138a522d2e475e375730b01f8ac65b09f1d8d988)

Author SHA1 Message Date
Franck Nijhof c9aa3c112a
Migrate GitHub to new entity naming style (#74903) 2022-07-10 20:05:24 +02:00
Marc Mueller 830cc278d3
Improve `CoordinatorEntity` typing (#68441) 2022-03-21 10:22:30 +01:00
Aidan Timson 5b28e2d983
Add discussions sensors to GitHub (#66937) 2022-02-20 13:32:24 +01:00
Joakim Sørensen 2d52aca9eb
Add Latest Tag sensor to GitHub integration (#66932) 2022-02-20 13:00:01 +01:00
Joakim Sørensen bce033cfc7
Enable all GitHub sensors by default (#66931) 2022-02-20 12:06:27 +01:00
Joakim Sørensen 9f57ce504b
Use GraphQL for GitHub integration (#66928) 2022-02-20 11:59:11 +01:00
Joakim Sørensen b07f4ba398
Cleanup GitHub sensor classes and descriptions (#64853) 2022-01-24 18:47:21 +01:00
Joakim Sørensen 6a0c3843e5
Revamp github integration (#64190)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-18 20:04:01 +01:00
epenet 30a64bd0f2
Add sensor setup type hints [g-h] (#63316)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 19:13:59 +01:00
Joakim Sørensen 713d294627
Use `_attr_*` for the GitHub integration (#56419) 2021-09-19 15:10:51 +02:00
Joakim Sørensen 29f1fab7f7
Move to aiogithubapi any async for the GitHub integration (#55143) 2021-08-24 11:46:44 -05:00
Erik Montnemery 6de6a5dc14
Move temperature conversions to sensor base class (3/8) (#54469)
* Move temperature conversions to entity base class (3/8)

* Fix FritzBox sensor

* Fix tests
2021-08-12 14:23:56 +02:00
Erik Montnemery 339a56e434
Migrate integrations f-h to extend SensorEntity (#48212) 2021-03-22 19:45:17 +01:00
Erik Montnemery af4d06b12e
Update integrations f-i to override extra_state_attributes() (#47757) 2021-03-11 16:57:47 +01:00
Max Chodorowski 4c42e469b3
Fix number of reported issues by github integration (#47203) 2021-03-01 10:38:07 +01:00
Bram Kragten 9ecaa10e51
Adjust icons for MDI bump (#37730) 2020-07-14 22:17:14 +02:00
Joakim Sørensen 4fa268ecb4
Limit clone/view stats to repos with push access (#34575) 2020-04-23 12:42:01 -07:00
René-Marc Simard f5b7deda72
Add counters for GitHub repo forks, clones, views (#33300)
* Add counters for GitHub repo forks, clones, views

* Rename uniques to unique
2020-04-08 09:52:39 -05:00
Paulus Schoutsen 56cf4e54a9
Add github sensor latest tag attribute (#32360)
* Add attribute 

latest release tag

* add attrs = 

and only create attr Tag if exists
made requested changes

* change condition for _latest_release_tag

to use self._github_data.latest_release_url

* Correct changes

* Update sensor.py

* blackify
2020-03-04 18:14:45 -08:00
kuchel77 eb90cefd84
Keeping adding in Github repositories after error (#32393) 2020-03-02 13:59:11 +01:00
Marius 3ab04118f6
Fix github sensor short SHA (#32316) 2020-02-29 14:35:28 +01:00
Marius 7714160f4c
Change github sensor state to short commit sha (#31581)
* change state to latest_release_url

to have a meaningful frontend representation.
self._github_data.latest_commit_sha is still available in the attributes, so no info is lost

* template state to show only the tag

and not the full url to the tag

* add guard to update(self) for state

* add empty line 150

black...

* Update sensor.py

* add SHA if no release url

* Correct sha to 7 digits

* take out fallback on state
2020-02-28 12:34:39 +01:00
Bas Nijholt d58e6e924a Sort imports according to PEP8 for components starting with "G" (#29767) 2019-12-09 14:17:36 +01:00
Markus Nigbur 13ac6ac315 Move imports in github component (#27406) 2019-10-10 11:16:19 -07:00
Paulus Schoutsen 4de97abc3a Black 2019-07-31 12:25:30 -07:00
cgtobi 2c07bfb9e0 Remove dependencies and requirements (#23024)
* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit fe7171b4cd.

* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit 391355ee2c.

* Remove dependencies and requirements

* Fix flake8 complaints

* Fix more flake8 complaints

* Revert non-component removals
2019-04-12 10:13:30 -07:00
Tobias Sauerwein 048b100eea Clean up docstrings (#22679)
* Clean up docstrings

* Fix long lines

* Fix more docstrings

* Fix more docstrings

* Fix more docstrings
2019-04-03 17:40:03 +02:00
Paulus Schoutsen f5076188ef
Consolidate all platforms that have no tests (#22096)
* Consolidate

* Fix tests

* Update imports

* Fix import

* Use importlib because integration and package share name

* Fix more tests

* Update .coveragerc and CODEOWNERS
2019-03-16 20:44:05 -07:00