Comments (12)
I have pulled sensor_types
out as SENSOR_TYPES
(could be called BINARY_SENSOR_TYPES
).
from ramses_cc.
required keyword-only argument
Should be optional?
from ramses_cc.
I am not familiar with this:
@dataclass(kw_only=True)
class RamsesEntityDescription(EntityDescription):
"""Class describing Ramses entities."""
has_entity_name: bool = True
extra_attributes: list[str] = field(default_factory=list) # dict?
from ramses_cc.
Odd. It works fine for me. These are the docs for creating a new list for the dataclass. It's a list, not a dict as it is a list of device properties to expose as attributes.
from ramses_cc.
But:
RamsesBinarySensorEntityDescription(
key="active_fault",
name="Active fault",
rf_class=Logbook,
entity_class=RamsesLogbookBinarySensor,
device_class=BinarySensorDeviceClass.PROBLEM,
extra_attributes={ # this is a dict
ATTR_ACTIVE_FAULT: "active_fault",
ATTR_LATEST_EVENT: "latest_event",
ATTR_LATEST_FAULT: "latest_fault",
},
from ramses_cc.
🤦 Yes, you're absolutely correct. The default should be a dict (type dict[str, str]
)! I initially implemented it as a list before changing it to be more flexible but was completely forgetting about that when writing that comment.
from ramses_cc.
...but doesn't solve my problem.
from ramses_cc.
We don't actually need it to default to an empty dict. I'm confused as to why that's not working for you but does the following work instead?
extra_attributes: dict[str, str] | None = None
from ramses_cc.
Well.
I had tried
extra_attributes: dict[str, str] | None = field(default_factory=dict)
... which didn't work, but your suggestion does!
from ramses_cc.
I'll push that.
from ramses_cc.
We're both running dev branch of HA, with Python 3.11.6, right?
from ramses_cc.
We're both running dev branch of HA, with Python 3.11.6, right?
I've been running on a slightly out of date dev branch of HA (Dec 3) running with the provided devcontainer which has Python 3.11.4. I also tested on my main install of 2023.12.3. I'll update to latest dev for good measure.
from ramses_cc.
Related Issues (20)
- 1 Zone not updating HOT 1
- device type 29 not known to have signature: 0001C826090367FFFF
- Best practice is exactly one gateway HOT 7
- MqttTransport: Calls `_on_connect` multiple times HOT 2
- MqttTransport: Does not close down gracefully HOT 1
- Cant bind to my MVS-15R from orcon
- Entity climate.01:215596 (<class 'custom_components.ramses_cc.climate.RamsesController'>) implements HVACMode(s): heat, off, auto and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. HOT 1
- ramses_rf transmits too many packets per unit time HOT 4
- The integration is not tolerant of temporary issues with the packet source. HOT 8
- 0.31.16 Problem with the serial port: Transport did not initialise HOT 12
- 0.31.16 ramses_cc.get_zone_schedule service failing HOT 2
- Startup hangs with pyserial-asyncio-fast HOT 32
- 0.31.7 known_list does not filter out my next door neighbour's Evohome HOT 11
- [Question] What class to use for dual purpose device? HOT 2
- Packet log not rotating in config_flow HOT 3
- Warning: Detected that custom integration 'ramses_cc' accesses hass.helpers.storage HOT 1
- Missing sensor for bypass_mode Orchon 22f7
- Detected blocking call to open inside the event loop by custom integration 'ramses_cc' HOT 3
- All entities Unknown with Gateway status stuck on Problem HOT 13
- How to fake a Nuaire CO2 Sensor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ramses_cc.