diff --git a/src/HassModel/NetDeamon.HassModel/Entities/Entity.cs b/src/HassModel/NetDeamon.HassModel/Entities/Entity.cs
index d46bc562..92554b3c 100644
--- a/src/HassModel/NetDeamon.HassModel/Entities/Entity.cs
+++ b/src/HassModel/NetDeamon.HassModel/Entities/Entity.cs
@@ -43,7 +43,7 @@ public Entity(IEntityCore entity)
///
/// The current Attributes of this Entity
///
- public virtual object? Attributes => EntityState?.Attributes;
+ public Dictionary? Attributes => EntityState?.Attributes;
///
/// The full state of this Entity
@@ -110,7 +110,7 @@ protected Entity(IHaContext haContext, string entityId) : base(haContext, entity
{ }
///
- public override TAttributes? Attributes => EntityState?.Attributes;
+ public new virtual TAttributes? Attributes => EntityState?.Attributes;
///
public override TEntityState? EntityState => MapState(base.EntityState);
diff --git a/src/HassModel/NetDeamon.HassModel/Entities/EntityState.cs b/src/HassModel/NetDeamon.HassModel/Entities/EntityState.cs
index 7200bd42..c612a36b 100644
--- a/src/HassModel/NetDeamon.HassModel/Entities/EntityState.cs
+++ b/src/HassModel/NetDeamon.HassModel/Entities/EntityState.cs
@@ -17,7 +17,7 @@ public record EntityState
///
/// The attributes
///
- public virtual object? Attributes => AttributesJson?.Deserialize>() ?? [];
+ public Dictionary? Attributes => AttributesJson?.Deserialize>() ?? [];
/// Last changed, when state changed from and to different values
[JsonPropertyName("last_changed")] public DateTime? LastChanged { get; init; }
@@ -52,5 +52,5 @@ public EntityState(EntityState source) : base(source)
}
///
- public override TAttributes? Attributes => _attributesLazy.Value;
+ public new virtual TAttributes? Attributes => _attributesLazy.Value;
}