Hi all @fredrike is correct - do the copy from github for dakin to local custom_components and alter all the references to the custom_components folder.
And then load up the pydaikin updates from bitbucket reference currently - and you should have success!
thanks for the help guys
i am now getting this error
Error while setting up platform daikin
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py”, line 124, in _async_setup_platform
task = async_create_setup_task()
File “/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py”, line 104, in async_create_setup_task
self.hass, config_entry, self._async_schedule_add_entities)
TypeError: async_setup_entry() takes 2 positional arguments but 3 were given
I do recall seeing this one (or very similar) during our dev/test cycles on getting this working…
Have you updated all the references in /config/custom_components/daikin (i think climate.py and config_flow.py) to point to from custom_components.pydaikin.appliance import Appliance
And the appliance.py in the pydakin directory is the latest from @fredrike bitbucket?
Thanks @Borgy for your help, but ive checked this and it turns out that i have already done this. i did open sensor.py and thought maybe something needs to be changed in this first section
“”“Support for Daikin AC sensors.”""
import logging
from homeassistant.components.daikin import DOMAIN as DAIKIN_DOMAIN
from homeassistant.components.daikin.const import (
ATTR_INSIDE_TEMPERATURE, ATTR_OUTSIDE_TEMPERATURE, SENSOR_TYPE_TEMPERATURE,
SENSOR_TYPES)
from homeassistant.const import CONF_ICON, CONF_NAME, CONF_TYPE
from homeassistant.helpers.entity import Entity
from homeassistant.util.unit_system import UnitSystem
_LOGGER = logging.getLogger(name)
def setup_platform(hass, config, add_entities, discovery_info=None):
“”"Old way of setting up the Daikin sensors.
Can only be called when a user accidentally mentions the platform in their
config. But even in that case it would have been ignored.
"""
pass
async def async_setup_entry(hass, entry, async_add_entities):
“”“Set up Daikin climate based on config_entry.”""
daikin_api = hass.data[DAIKIN_DOMAIN].get(entry.entry_id)
async_add_entities([
DaikinClimateSensor(daikin_api, sensor, hass.config.units)
for sensor in SENSOR_TYPES
I think you might have found a new bug. It seems like you are calling this part with TypeError: async_setup_entry() takes 2 positional arguments but 3 were given.
And from there replace the pydaikin/appliance.py with this appliance.py (found in /usr/local/lib/python3.7/site-packages/pydaikin in the Docker container).