Skip to content

Commit

Permalink
Update sensor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FaserF committed Sep 14, 2023
1 parent 66221b2 commit b43ae10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/chefkoch/sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""deutschebahn sensor platform."""
"""chefkoch sensor platform."""
from datetime import timedelta, datetime
import logging
from typing import Any, Callable, Dict, Optional
Expand Down Expand Up @@ -54,7 +54,7 @@ def __init__(self, config, hass: HomeAssistantType):
self._available = True
self.hass = hass
self.updated = datetime.now()
self.attrs: None
self.attrs: {}

@property
def name(self):
Expand Down Expand Up @@ -235,7 +235,7 @@ async def async_update(self):
hass = self.hass
"""Pull data from the chefkoch.de web page."""
data = await hass.async_add_executor_job(
fetch_chefkoch_random_recipies, hass, self
fetch_chefkoch_daily_recipies_backe, hass, self
)
recipes_count = len(data)

Expand Down

0 comments on commit b43ae10

Please sign in to comment.