Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aneisch committed Jan 27, 2023
1 parent 9cd3f05 commit 3ed8c6f
Show file tree
Hide file tree
Showing 200 changed files with 13,397 additions and 286 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ Also using Grafana/Influx for graphing, both running in Docker containers on NUC
Description | value
-- | --
Lines of ESPHome YAML | 2342
Lines of Home Assistant YAML | 6862
[Integrations](https://www.home-assistant.io/integrations/) in use | 46
Lines of Home Assistant YAML | 6859
[Integrations](https://www.home-assistant.io/integrations/) in use | 44
Zigbee devices in [`zha`](https://www.home-assistant.io/integrations/zha/) | 26
Z-Wave devices in [`zwave_js`](https://www.home-assistant.io/integrations/zwave_js/) | 37

Expand Down Expand Up @@ -92,17 +92,17 @@ Entities in the [`remote`](https://www.home-assistant.io/components/remote) doma
Entities in the [`scene`](https://www.home-assistant.io/components/scene) domain | 2
Entities in the [`script`](https://www.home-assistant.io/components/script) domain | 46
Entities in the [`select`](https://www.home-assistant.io/components/select) domain | 22
Entities in the [`sensor`](https://www.home-assistant.io/components/sensor) domain | 353
Entities in the [`sensor`](https://www.home-assistant.io/components/sensor) domain | 360
Entities in the [`setter`](https://www.home-assistant.io/components/setter) domain | 1
Entities in the [`siren`](https://www.home-assistant.io/components/siren) domain | 1
Entities in the [`sun`](https://www.home-assistant.io/components/sun) domain | 1
Entities in the [`switch`](https://www.home-assistant.io/components/switch) domain | 148
Entities in the [`switch`](https://www.home-assistant.io/components/switch) domain | 154
Entities in the [`timer`](https://www.home-assistant.io/components/timer) domain | 1
Entities in the [`update`](https://www.home-assistant.io/components/update) domain | 25
Entities in the [`vacuum`](https://www.home-assistant.io/components/vacuum) domain | 1
Entities in the [`weather`](https://www.home-assistant.io/components/weather) domain | 2
Entities in the [`zone`](https://www.home-assistant.io/components/zone) domain | 6
**Total state objects** | **1136**
**Total state objects** | **1149**
## The HACS integrations/plugins that I use:
**Appdaemon**:<br>
[aneisch/follow_me_appdaemon](https://github.com/aneisch/follow_me_appdaemon)<br>
Expand All @@ -127,7 +127,6 @@ Entities in the [`zone`](https://www.home-assistant.io/components/zone) domain |
[custom-components/readme](https://github.com/custom-components/readme)<br>
[dlashua/hass-setter](https://github.com/dlashua/hass-setter)<br>
[hacs/integration](https://github.com/hacs/integration)<br>
[magico13/ha-emporia-vue](https://github.com/magico13/ha-emporia-vue)<br>
[moralmunky/Home-Assistant-Mail-And-Packages](https://github.com/moralmunky/Home-Assistant-Mail-And-Packages)<br>
[rospogrigio/localtuya](https://github.com/rospogrigio/localtuya)<br>
[twrecked/hass-aarlo](https://github.com/twrecked/hass-aarlo)<br>
Expand Down
6 changes: 6 additions & 0 deletions configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,12 @@ wemo:
static:
- 10.0.1.48

utility_meter:
electric_utilities_monthly:
source: sensor.total_daily_energy
name: Monthly Energy
cron: "0 22 L * *"

zha:
enable_quirks: true
custom_quirks_path: /config/custom_zha_quirks/
Expand Down
10 changes: 8 additions & 2 deletions custom_components/hacs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

from .base import HacsBase
from .const import DOMAIN, MINIMUM_HA_VERSION, STARTUP
from .data_client import HacsDataClient
from .enums import ConfigurationType, HacsDisabledReason, HacsStage, LovelaceMode
from .frontend import async_register_frontend
from .utils.configuration_schema import hacs_config_combined
Expand Down Expand Up @@ -87,6 +88,10 @@ async def async_initialize_integration(
hacs.hass = hass
hacs.queue = QueueManager(hass=hass)
hacs.data = HacsData(hacs=hacs)
hacs.data_client = HacsDataClient(
session=clientsession,
client_name=f"HACS/{integration.version}",
)
hacs.system.running = True
hacs.session = clientsession

Expand Down Expand Up @@ -153,8 +158,9 @@ async def async_startup():
hacs.disable_hacs(HacsDisabledReason.RESTORE)
return False

can_update = await hacs.async_can_update()
hacs.log.debug("Can update %s repositories", can_update)
if not hacs.configuration.experimental:
can_update = await hacs.async_can_update()
hacs.log.debug("Can update %s repositories", can_update)

hacs.set_active_categories()

Expand Down
Loading

0 comments on commit 3ed8c6f

Please sign in to comment.